User-level Synch: Try to avoid:
Sharing same object that may be synchronized across multiple threads
Allocating new objects while holding a lock. This may invoke the garbage collector, causing the lock to be held even longer while (at least) this thread blocks
Performing long system calls while holding a lock. (e.g., I/O, graphics)
Author | Title | Track | Home