Hi, I have a lot questions on the lock : * What is the prototype of all functions in <sys/lock.h> ? * The definition of __LOCK_INIT, it take 2 arguments. The first is class. Why, it's not used ? * In the definition of _LOCK_T, it's the type of a lock. A maner to use a lock is : while (lock == 0);. Or, the lock must be declared as "volatile". regards, Mathieu