wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Semaphores are used to solve.

A
Deadlock
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Mutual exclusion
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
Inter-process communication
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Messaging
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A Mutual exclusion
Semaphore is a variable or abstract data type used to control access to a common resource by multiple processes in a concurrent system like multitasking operating system.
Semaphores are used to solve a problem of race condition, mutual exclusion, process synchronization. There are some arguments semaphores does not gurantee freedom from race condition. Mutual exclusion is a program object that prevents simultaneous access to a shared resource. Semaphore used for signaling between threads.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Challenges Faced by Political Parties
CIVICS
Watch in App
Join BYJU'S Learning Program
CrossIcon