Busy Waiting
Everything on SkillVeris tagged Busy Waiting — collected across the glossary, study notes, blog, and cheat sheets.
4 resources across 1 library
Interview Questions(4)
Peterson’s Solution for Mutual Exclusion
Peterson’s solution is a software-only algorithm for two processes that guarantees mutual exclusion, progress, and bounded waiting using only two shared variab…
What is a Spinlock?
A spinlock is a locking mechanism where a thread that cannot acquire the lock repeatedly polls it in a tight busy-wait loop instead of yielding the CPU or slee…
What is Busy Waiting and Why is it Costly?
Busy waiting is when a thread repeatedly checks a condition in a tight loop instead of yielding the CPU or being put to sleep, which wastes CPU cycles and star…
Polling vs Interrupt-Driven I/O: What Is the Difference?
Polling is where the CPU repeatedly checks a device’s status register in a loop until it is ready, while interrupt-driven I/O lets the CPU do other work and re…