Opening book details…
Can I read Understanding Volatile Variables in C on EtoBox?
Understanding Volatile Variables in C is a document available to read on EtoBox.
What is Understanding Volatile Variables in C about?
Here are the key points about locks in OS/161: - lock_do_i_hold() tells if the current thread holds the lock. This is useful for debugging and assertions. - lock_get_holder() would not be very useful as a function. By the time another thread calls it and uses the return value, the lock holder may have already changed. - The locking code needs to directly track the lock holder internally for proper lock handling. There is no need to expose this to other code via a function. - Other threads only need to
- Language
- EN