How does thread synchronization occurs inside a monitor?

How does thread synchronization occurs inside a monitor?

A Monitor defines a lock and condition variables for managing concurrent access to shared data. The monitor uses the lock to ensure that only a single thread inactive in the monitor code at any time.

A monitor allows only one thread to lock an object at once.

What are the three types of priority?

1. MAX_PRIORITY (10)
2. MIN_ PRIORITY (1)
3. NORM_PRIORITY (5)
Difference between AWT and Swing
Java Swing - Classes in swing are not OS dependent. They don’t create peer components, so they are light weight unlike AWT...
Java Stream Tokenizer - What is meant by Stream Tokenizer?
Java Stream Tokenizer - The StreamTokenizer class takes an input stream and parses it into " allowing the to be read one at a tokensname...
What is meant by getCodeBase and getDocumentBase method?
Java getCodeBase & getDocumentBase - The getCodebase() method is also commonly used to establish a path to other files or folders that are in the same location as the class being run...
Post your comment