CHAPTER 17: Threads and Locks Previous
Previous
Java Language
Java Language
Index
Index
Next
Next

17.5 Rules about Locks

Let T be a thread and L be a lock. There are certain constraints on the actions performed by T with respect to L:

With respect to a lock, the lock and unlock actions performed by all the threads are performed in some total sequential order. This total order must be consistent with the total order on the actions of each thread.

© 1996 Sun Microsystems, Inc. All rights reserved.