adspace
Explain about thread synchronization inside a monitor?
Answer Posted / Mudit Kumar Gupta
Thread synchronization inside a monitor (also known as synchronized blocks) ensures that only one thread can execute a block of code at a time. In Java, when a thread enters a synchronized block for an object, it acquires a lock on the object. Other threads attempting to enter the same synchronized block will be blocked until the first thread exits the block and releases the lock.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category