Computer Science, asked by prathamchougule7605, 1 year ago

What is different between busy waiting and blocking?

Answers

Answered by siddharthamondp7yj45
4
With busy waiting, a process keeps testing for some condition. It is constantly using the CPU, sitting in a tight loop. Withblocking, a process gives up the CPU and is awakened later when the condition that is being waited for has become true.
Answered by aditijaink283
1

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

Similar questions