In: Computer Science
6.2_What is the meaning of the term busy waiting? What other kinds of waiting are there in an operating system? Can busy waiting be avoided altogether? Explain your answer.
7.4_Describe how deadlock is possible with the dining-philosophers problem.
Why is it necessary to have an atomic instruction for providing access to a critical section?
6.2
Busy waiting:
=>It says us that a process will be in an infinite loop for accessing the resources in order to get processed while the resources are in the control of other processes.
=>We have 2 types of waiting 1.Busy waiting 2.blocked waiting
=>blocked waiting is nothing but a process will be waiting in waiting queue until the other processes completes it's work so that it can handover the resources to the waiting process in queue. This can be done by using semaphores.
=>Busy waiting can't be avoided altogether.because if a process goes into a sleep or block state it may not be woke up by the system sometimes.
7.4