Thread synchronization in monitors
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, October 4, 2005 04:08 PM

How does thread synchronization occur in a monitor ?

Are there any special java classes (apart from wait(), notifyAll() ) for handling thread synchronization.

Re: Thread synchronization in monitors

Posted By:   Edward_Harned  
Posted On:   Wednesday, October 5, 2005 09:41 AM

Think of the Monitor as a traffic cop. Only one thread may run at a time. When the first thread finishes (exiting the synchronized method or block), the cop lets the next thread run.

About | Sitemap | Contact