Question

In: Computer Science

6.2_What is the meaning of the term busy waiting? What other kinds of waiting are there...

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?

Solutions

Expert Solution

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


Related Solutions

busy waiting always less efficient
Is busy waiting always less efficient (in terms of using processor time) than a blocking wait? Explain.
What is the meaning of the term cash flow? Why is this term subject to confusion...
What is the meaning of the term cash flow? Why is this term subject to confusion and misrepresentation? In addition, discuss the importance to analysis of the statement of cash flows. Identify factors entering into the interpretation of cash flows from operations.
There are two different ways to implement semaphore, one is to use busy waiting and the...
There are two different ways to implement semaphore, one is to use busy waiting and the other is to use block and wakeup. What are the differences between the two implementation schemes? In what scenario does the busy-waiting semaphore have a better performance than the block-and-wakeup semaphore?
In what kinds of situations is queuing analysis most appropriate? Suggest ways to improve waiting line...
In what kinds of situations is queuing analysis most appropriate? Suggest ways to improve waiting line operation.
Using the Internet, research the meaning of the term 'Slogan'. What is a slogan? What is...
Using the Internet, research the meaning of the term 'Slogan'. What is a slogan? What is the purpose of a slogan? Find at least two examples of popular slogans currently in use in advertising on TV or in magazines. indicating why you feel these examples are effective.
What is the meaning of the term the operating cycle? Is the operating cycle the same...
What is the meaning of the term the operating cycle? Is the operating cycle the same length for all businesses? What factors affect the operating cycle?
What is the meaning of the term, “Precedent”? Give an example of a Precedent in education...
What is the meaning of the term, “Precedent”? Give an example of a Precedent in education (Other than the one used in your assignment this week) and explain why it is given this designation and in your opinion, its far-reaching effects and why it is important to schools today.
What is the meaning of the term "multicollinearity? Why is it important in assessing the strength...
What is the meaning of the term "multicollinearity? Why is it important in assessing the strength of a multiple regression model?
What are some of the “other” organized criminal groups that this chapter discusses? What kinds of...
What are some of the “other” organized criminal groups that this chapter discusses? What kinds of activities do they engage in?
Concept/ meaning Term in econometrics  - A term requires about 5 explanations (meaning, application, example, feature,...
Concept/ meaning Term in econometrics  - A term requires about 5 explanations (meaning, application, example, feature, impact)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT