Add monitor using synchronized
This monitor, as you can see by running the TestMonitor class, is slightly slower than the monitor using ReentrantLock and Condition. Perhaps because of preemption.
Loading
Please register or sign in to comment
This monitor, as you can see by running the TestMonitor class, is slightly slower than the monitor using ReentrantLock and Condition. Perhaps because of preemption.