Computer Science - Operating Systems Concepts - Discussion

Discussion Forum : Operating Systems Concepts - Section 3 (Q.No. 18)
18.
Semaphores
synchronize critical resources to prevent deadlock
synchronize critical resources to prevent contention
are used to do I/O
are used for memory management
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
3 comments Page 1 of 1.

Pushpak said:   6 years ago
Why not B? please explain.

Manohar Kumar Singh said:   8 years ago
Answer is B.

Deadlock can happen even if the semaphore is there. It only assures that a part of a code is executed by only one processor.

Vishak said:   9 years ago
Semaphore is an abstract datatype or a variable that is used when multiple process try to access a common resource in a concurrent system.

Post your comments here:

Your comments will be displayed after verification.