I was trying to read up on Java Monitors online, but everywhere I'm finding a very layman's definition. Can someone pls clarify ->
Say we have a syncronized block. I read that objects with the 'synchronized' keyword have monitors attached to them, to disallow concurrent access from threads. So,
Do monitors simply not allow the 'synchronized' block of code to be run by multiple threads?
OR
Do monitors know which all resources are being used by that method, and restrict the use of those resources?