This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Every object has a lock associated with it. If one thread invokes a synchronized method on an object, the lock of that object is first acquired, the method body is executed, and then the lock is released. Another thread invoking a synchronized method on that same object will block until the lock is released. Only one thread at a time can acquire the lock of an object. (In the Java Programming Language, they say the execution of two threads is mutually exclusive, not the lock.) [ May 08, 2003: Message edited by: Marlene Miller ]