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)
|