|
| Total Answers and Comments: 3 |
Last Update: September 09, 2008 Asked by: vmannur |
|
| | |
|
Submitted by: preetin Critical section is the part of the code that can be assessed by multiple threads or processes at the same time.
In order to protect the overwriting of the same memory space, this part of the code is protected by use of semaphores. One process takes the semaphore and during this period, it cannot be executd by any other thread. When the work is finished, the semaphore is released so that other processes can use it to update the memory space or read from it.
Above answer was rated as good by the following members: sourabh_t, rajani_vaddepalli15 | Go To Top
|