What is different between busy waiting and blocking?
Answers
Answer:
The answer to the given question is explained in the explanation.
Explanation:
Busy waiting:
Busy waiting, also known as tailing, or busy looping is a process synchronization technique in which a process/task repeatedly waits and checks for a condition to be met before continuing. implementing it. In the meantime, a process executes instructions to check that an input condition is true, such as the availability of a key or resource in a computer system.
For resource availability, consider a scenario where a process needs resources for a particular program. However, the resource is currently in use and unavailable at this time, so the process must wait for the resource to become available before it can continue.
Blocking:
A blocked process is a process that is waiting for an event, such as a resource becoming available or completing an I/O operation.
In a multitasking computer system, individual tasks or threads of execution must share system resources. Shared resources include CPU, network and network interfaces, memory, and disk.
#SPJ2