Re: Javas built in monitor?
Read the API doc for the notify and wait methods of the Object class for discussions of monitor.
Re: Javas built in monitor?
My questions was in other words -does an object become a monitor when a thread locks it with synchronized? - Is it okay to use Synchronized or is that outdated to? Thanks
Re: Javas built in monitor?
Any object is a monitor for wait and notify and synchronized.
The new classes give you a lot of new functionality with a small bit of extra usages to learn.
Re: Javas built in monitor?