Does the method work if there is a single cpu switches

Assignment Help Operating System
Reference no: EM13869494

Consider the following method by which an operating system might implement sema- phore instructions. Whenever the CPU is about to do an up or down on a semaphore (an integer variable in memory), it first sets the CPU priority or mask bits in such a way as to disable all interrupts. Then it fetches the semaphore, modifies it, and branches accordingly. Finally, it enables interrupts again. Does this method work if

a. There is a single CPU that switches between processes every 100 msec?

b. Two CPUs share a common memory in which the semaphore is located?

Reference no: EM13869494

Questions Cloud

Do you think that files are stored in consecutive sectors : All files may grow dynamically during execution without giving the operating system any advance information about their ultimate size. Do you think that files are stored in consecutive sectors? Explain.
What emotional consequences might thelma experience : Did Thelma do the right thing by revealing her knowledge of her father's drug use to her mother? Explain why. What behavioral and emotional consequences might Thelma experience as a result of her situation
Compare kotter''s and lewin''s recommended change models : Compare Kotter's and Lewin's recommended change models.
What conclusion can you draw about disk block size : On the other hand, the largest 10 percent of all files usually occupies about 95 percent of the entire disk space in use. From this data, what conclusion can you draw about disk block size?
Does the method work if there is a single cpu switches : Does this method work if There is a single CPU that switches between processes every 100 msec and Two CPUs share a common memory in which the semaphore is located?
What advantage is gained by using queue for waiting process : What advantage is gained by using a queue for waiting processes as opposed to waking a random sleeping processes when an up is performed?
What are the potential long-term consequences for rosie : Which of the four most common roles in family systems do you think Rosie is taking on? What are the potential long-term consequences for Rosie in taking on these heavy responsibilities
Gunpowder corp.''s board of directors approved a : On November 6, 2009, Gunpowder Corp.'s board of directors approved a share option plan for key executives. On January 2, 2010, a specific number of share options were granted.
Will the idea work if three or more processes use semaphore : In this way, programs that feel it is immoral to block can first inspect the semaphore to see if it is safe to do a down. Will this idea work if three or more processes use the semaphore? If two processes use the semaphore?

Reviews

Write a Review

Operating System Questions & Answers

  Determine the value of flags

Suppose if the last operation performed on a computer with an 8-bit word was an addition in which 2-operands were 00000010 and 00000011, determine the value of the following flags?

  Article and your own research

Using the above article and your own research, write a 3- to 5-page paper comparing 3-4 of the operating systems you find in the readings and other materials from your research. Compare both technical and non-technical features and explain what you b..

  Question about data communications

A 4480 octet datagram is to be transmitted and requires to be fragmented because it will pass through an Ethernet with a maximum payload of 1500 octets.

  Information-level design for college requirements

Database at college is needed to support following requirements. Complete information-level design for this set of requirements. Use your own experience to find out any constraints you require which are not stated in problem

  Question 1a four special cases and difficulties arise at

question 1a four special cases and difficulties arise at times when using graphical approach to solving lp problems.

  What is the best operating system in the world

What is the best operating system in the world, And which one is better: PS4 or Xbox One

  Differences between routers and switches

Assume you are currently working for Surebank, a medium financial institution. The company has approximately eighty people working in their main location where your office is located.

  Characteristics of atm networks

Determine the characteristics of ATM networks, as well as their advantages and limitations. Discuss the ideas of connection oriented and connectionless protocols.

  Concept and process of data binding

Describe the idea and process of Data Binding. Include an example of statements that would be used to create a Binding object. Describe components and effects of your model statement.

  Identify and describe the processes involved in the

identify and describe the processes involved in the management of the services disk quotas and security of both windows

  Network security principles

Explain a recent high profile computer security issue that you have heard of. Based on basic network security principles, how might the issue have been avoided?

  Switching elements in nxn banyan network

A stage of n x n banyan network consists of (n/2) 2x2 switching elements. 1st stage directs packets to the correct half of the network.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd