Are there any critical sections in os_signal

Assignment Help Mechanical Engineering
Reference no: EM131090211

Consider the following implementation of a spinlock semaphore used with a round-robin preemptive scheduler

1253_60f72f50-787c-4d98-8e42-88a639d85204.png

a) The compiler generated this code for OS_Signal

2134_66a65980-0b19-4598-b0ad-14c6ea7a37ef.png

Are there any critical sections in OS_Signal? That is, can two threads both call OS_ Signal? Justify your answer.

b) Design a new op-code for the 9S12, and use it to rewrite OS_Wait so the spin lock semaphore can be executed without critical sections and without disabling interrupts. Be VERY specific about what the new instruction does (e.g., addressing modes, condition code bits). The 16-bit pointer, semaPt, will be in Register D when OS_Wait is called.

Reference no: EM131090211

Questions Cloud

Write a main program that outputs position to sci channel : write a main program that outputs position to the SCI channel
Describe each definition from the following : The condition where (at most) one thread is allowed access to a resource that can not be shared. If a second thread wishes access to the resource while the first thread is using it, the second thread is made to wait until the first thread is finis..
First-year writing essay two rubric : In this unit, students develop an informed interpretation of a text, moving beyond summary or response into scholarly analysis. The textual analysis is meant to build on the critical skills of the first unit, but we will move from familiar persona..
Describe each definition from the following : The condition where (at most) one thread is allowed access to a resource that can not be shared. If a second thread wishes access to the resource while the first thread is using it, the second thread is made to wait until the first thread is finis..
Are there any critical sections in os_signal : Design a new op-code for the 9S12, and use it to rewrite OS_Wait so the spin lock semaphore can be executed without critical sections and without disabling interrupts. Be VERY specific about what the new instruction does (e.g., addressing modes, c..
Discuss brief history and current state of the relationship : Discuss a brief history and current state of the relationship you have selected. Define interpersonal communication -I would encourage you to ‘google' a definition that best applies to the relationship you are describing.
Distribution of white blood cell count : The distribution of white blood cell count per cubic millimeter of whole blood is approximately Normal with mean 7500 and standard deviation 1750 for healthy patients. Include an appropriately labeled and shaded normal curve for each part. There..
Mean quantitative sat score for male college : According to date from the College Board, the mean quantitative SAT score for male college-bound high school seniors is 530. Assume that SAT scores are approximately Normally distributed with a population standard deviation of 100.
Modify the subroutines written in assembly program : Where Operand is any standard 9S12 addressing mode and r is any of the 9S12 registers. This instruction exchanges the 8- or 16-bit contents of the Operand and data register. It does not set any condition code bits.

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  Package design

Package Design Brief: Assume you are the packaging engineer for a large consumer products company. In this company, the Packaging Design Briefs are initiated by the marketing group and forwarded to the Package Engineering group.

  Mechanical engineering questions

Define dynamic viscosity, Determine the centroid, Pressure due to the height of liquid, Advantage of changing the liquid, Calculate the total moment about the hinge of the seal gate.

  Automatic control

DOF system and Find the differential equation describing the system

  Write a paper on boyle''s law

Write a paper on Boyle's law and describe Compression and Combustion stroke . Also explain Charles's law and illustrate SI engine and CI engine.

  Verify the law for parallelogram of forces

To Verify the law for parallelogram of forces, law for triangle of forces and law of polygon of forces. These laws are very useful to calculate unknown forces in very short time.

  Discharge pressure of the compressor

What is the discharge revised discharge pressure of the compressor.

  The Case for Global Accounting Standards

The role of IFRS in both developing and developed capital markets.

  Wind turbine

Wind turbines are becoming more and more common as a method of energy production, wind turbines by their very nature are dynamic and are subject to and create their own internal and external kinematics and kinetics.

  Advanced design methodologies

8 x product engineering and design review (week 2 – 12), ~3 pages per item which must contain a brief description of the product then delve into concepts such as materials selection, manufacturing methods, life cycle analysis, recyclability and overa..

  Design of absorption column and the cooler

Design of absorption column and the cooler. Process design of other units should be completed along with pipe sizes.

  Determine the maximum total bending moment

Determine maximum total bending moment (static plus dynamic) of the beam under steady-state conditions.

  Force of the water on the gate

Determine the magnitude of the horizontal and vertical components of the force of the water on the gate.

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