Need of Busy Waiting
Busy waiting is required in operating system for achieving mutual exclusion. Mutual exclusion is used for preventing the processes from accessing the shared resources simultaneously. In operating system the critical section is defined as a program code in which concurrent access is avoided. In the critical section of processes they are granted with exclusive control for accessing it’s resources without any interference from the other available processes in mutual exclusion.
Busy Waiting in OS
Waiting in the operating system consists of two approaches namely Busy Waiting and Sleep Waiting. Busy waiting is defined as the process where the process or task continuously the processor and waits for the condition to be satisfied. Whereas Sleep waiting is defined as a process where the task or process does not consume the processor when it is waiting for its condition to be satisfied. The below article covers in detail busy waiting.