answersLogoWhite

0

No, a busy wait cannot probably be avoided altogether. In a uniprocessor system, one could inhibit interrupts during

wait()and

signal()operations in semaphores, but that is not possible in multiprocessor systems. In fact, a busy wait (or

spinlock), can be useful, especially in multiprocessor systems, when the wait is expected to be short (as with

wait()and

signal()), because no context switch is required when a process must wait on the lock.

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
JudyJudy
Simplicity is my specialty.
Chat with Judy

Add your answer:

Earn +20 pts
Q: Can busy waiting be avoided altogether?
Write your answer...
Submit
Still have questions?
magnify glass
imp