Operating System :: Process Management - Discussion
Home > Operating System > Process Management > MCQs Questions Discussion
13 / 41
Choose the correct option.
semaphore has disadvantage of busy waiting which waste cpu cycles this type of semaphore is called
ASpin Lock
BWaiting
CDeadlock
Dcritical section
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
STEP-BY-STEP
The main disadvantage of the semaphore is that it requires busy waiting. While a process is in its critical section, any other process that tries to enter its critical section must loop continuosly in the entry code. This continual looping is clearly a problem in a real multiprogramming system, where a single CPU is shared among many processes. Busy waiting wastes CPU cycles that some other process might be able to use productively. This type of semaphore is also called a spin lock because the process "spins" while waiting for the lock.
Read Full Answer
Report Error
Please Login First Click Here