retagged by
6,675 views

1 Answer

Best answer
18 votes
18 votes

Answer : synchronize critical resources to prevent contention

A semaphore is a way to lock a resource so that it is guaranteed that while a piece of code is executed, only this piece of code has access to that resource. This keeps two threads from concurrently accesing a resource, which can cause problems.

selected by
Answer:

Related questions

8 votes
8 votes
2 answers
1
go_editor asked Jun 10, 2016
7,134 views
In comparison with static RAM memory, the dynamic Ram memory haslower bit density and higher power consumptionhigher bit density and higher power consumptionlower bit den...
8 votes
8 votes
3 answers
2
go_editor asked Jun 10, 2016
4,648 views
Feedback queuesare very simple to implementdispatch tasks according to execution characteristicsare used to favour real time tasksrequire manual intervention to implement...
7 votes
7 votes
2 answers
3
go_editor asked Jun 10, 2016
3,983 views
Which of the following RAID level provides the highest Data Transfer Rate (Read/Write)RAID 1RAID 3RAID 4RAID 5
8 votes
8 votes
2 answers
4
go_editor asked Jun 10, 2016
7,756 views
On a system using non-preemptive scheduling, processes with expected run times of 5, 18, 9 and 12 are in the ready queue. In what order should they be run to minimize wai...