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

  Clients correctly submit integer and fifo name to serve

Accepts connections from 3 clients each in a separate window - Clients correctly submit integer and FIFO name to serve

  Page frames for public use and seven-page program

Given that main memory is consisted of three page frames for public use and that seven-page program (with pages a, b, c, d, e, f, g) requests pages in the following order: a, b, a, c, d, a, e, f, g, c, b, g.

  What is the biggest advantage of blades servers and why

Read the HP article on Blade Servers at: http://h18004.www1.hp.com/products/blades/info/what-is-a-blade.html.

  Explaining the type of firewall

Can you think of conditions that call for multiple firewalls on the similar network or similar network segment? Discuss why might you firewall off two or more connections into a subnetwork?

  Determine the maximum total aggregate throughput

Consider Figure 5.26. Assume that all links are one hundred Mbps. Determine the maximum total aggregate throughput that can be achieved among the nine hosts and two servers in the network?

  Explain deadlock-avoidance system

What is the difference between a safe state and an unsafe state in a deadlock-avoidance system?

  Difference between a formal and an informal system

Explain the main reasons that firms implement intranets and one major obstacle to obtaining these benefits also explain the difference between a formal and an informal system.

  What is the internal data that allows the operating system

What is the internal data that allows the operating system to supervise and control the process?

  Computer privacy related question

One of the main concerns with the expanding influence of information technology is issue of personal privacy. As more and more individuals and businesses are using computers to transact business and store data the protection of individual privacy is ..

  What are the four types of business ownership describe each

what are the four types of business ownership? describe each of them. your response should be at least 200 words in

  Explian wired and wireless media

Discuss and explian wired and wireless media along with the drawbacks and benefits of each also Discuss the channel signaling systems used in voice communication along with the drawbacks and benefits of each.

  Solving wired versus wireless lan issues

Suppose your local hospital has decided to extend their offices to another department of the building where it is difficult to have cables installed,

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