Prevent race conditions in kernel code for a uni-processor

Assignment Help Basic Computer Science
Reference no: EM13696132

In early Unix kernels the approach used to avoid race conditions in kernel code was to use a combination of the following two techniques: (i) non- preemptive scheduling of threads when they are running in privileged mode and (ii) interrupt disabling for those short sections of kernel code that manipulate data used by interrupt handlers.
(a) Explain how and why these techniques, when used together, are sufficient to prevent race conditions in kernel code for a uni-processor operating system.
(b) Explain why it is insufficient to use one or other technique in isolation. (c) Explain why the approach of using them together is still not sufficient for a shared memory multi-processor operating system, and describe a technique that would solve the problem in a shared memory multi- processor operating system.

Reference no: EM13696132

Questions Cloud

Discuss how current or potential employers : From the e-Activity, discuss how current or potential employers might be able to use the information you found and possible steps that could be taken to help ensure your privacy. Provide specific examples to support your response.
Summarize by outlining the sequence of operations : Explain how an operating system can temporarily pass control of the CPU over to user code without risking an indefinite loss of control. Discuss the roles of timer interrupts, privileged mode operation, and memory protection and explain why all of..
The game of nim is played with a collection of piles of stic : The game of Nim is played with a collection of piles of sticks. In one move a player may remove any nonzero number of sticks from a single pile. The players alternately take turns making moves. The player who removes the very last stick loses. Say..
Describe how concepts such as risc : In this six pages research paper, you will investigate the evolution of and current trends in improving system performance with concepts such as RISC, pipelining, cache memory, and virtual memory. In this paper you must, as part of your conclus..
Prevent race conditions in kernel code for a uni-processor : In early Unix kernels the approach used to avoid race conditions in kernel code was to use a combination of the following two techniques: (i) non- preemptive scheduling of threads when they are running in privileged mode and (ii) interrupt disabli..
Perform dynamic address translation : Perform dynamic address translation
Computer forensics examiner get involved with, and how : Other than the two basic types of computer crimes above, what non-computer crimes might a computer forensics examiner get involved with, and how?
The convergence of different devices such as cameras : Think about how mobile our computing devices have become and the convergence of different devices such as cameras, phones, and computers. What do you think the computer of the future will be like? What capabilities will it have that computers ..
The southern tiny college to develop student registration : You have been employed by the Southern Tiny College to develop Student Registration System. To understand the functions of Registrar Office, you have spent some time talking to various personnel in the Registrar Office and also you've examined ..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Better software tool internet explorer or mozilla firefox

There are several Internet browsers available today, and many people select which to use without giving it consideration. Explain which is better software tool: Internet Explorer, Mozilla Firefox, or Google Chrome?

  Review the wbs and gantt chart you created for tasks

Review the WBS and Gantt chart you created for Tasks Propose three to five additional activities that would help you estimate resources and durations. Write a one-page paper describing these new activities.

  Compute the average temperature for a month averaged

Complete the following program that has an array to store one month of hourly templerature readings. Assume each month is 30 days long. Rows represent days of the month and columns represent hours of the day.

  You have been working as a police officer for the

you have been working as a police officer for the centervale police department for two years. you are on your nightly

  What are the major obstacles in moving this forward

These are called code generators. Analyze the advantages and disadvantages of this trend. What are the major obstacles in moving this forward?

  Procedure to charge lower rate for ongoing support services

Create complete, written procedure for New Century Health Clinic maintenance change requests. Include suitable forms with procedure.

  Cybersquatting collapse

Local challenges Collapse . What are the issues and challenges facing your country regarding information security, spam, Internet governance and data? How would you approach a solution to the problem?

  Responsibilities of job when designing digital portfolio

Do you think that your digital portfolio should depend on the job, title, or industry you are planning or working on getting into? Do task and responsibilities of a specific job matter when designing your digital portfolio?

  Implement the stack and queue with a single class

Implement the stack and queue with a single class interfaces with a unique class that is derived from class LinkedDeque (Code Fragment 5.21)

  Discuss the advantages and disadvantages of outsourcing it

Discuss the advantages and disadvantages of outsourcing IT.

  Creating the walburg energy alternatives database

Complete In The Lab 2 - Creating the Walburg Energy Alternatives Database - on page AC 68 - AC 69 at the end of Access Chapter 1. Perform all steps. Submit the entire database file for grading.

  Conversely determine the effect of information technology

q1. evaluate and discuss the human resource security privacy and stability issues affected by information technology.

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