InterviewSolution
Saved Bookmarks
| 1. |
What Is A Critical Section? |
|
Answer» CRITICAL SECTION is the part of a code, which is very important and in multi-threading must be exclusively modified by any THREAD. Semaphore or mutex is USED to protect critical section. In JAVA you can use synchronized keyword or ReentrantLock to protect a critical section. critical section is the part of a code, which is very important and in multi-threading must be exclusively modified by any thread. Semaphore or mutex is used to protect critical section. In Java you can use synchronized keyword or ReentrantLock to protect a critical section. |
|