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

  Explain square steel bar subjected to transverse biaxial

Consider a 4-in square steel bar subjected to transverse biaxial tensile stresses of 20 ksi in the x direction and 10 ksi in the y direction.

  Calculate thermal efficiency and mean effective pressure

an ideal otto cycle has a compression ratio of 5.3. at the beginning of the compression process p190 kpa t127 c and

  Knowing that at t3 s slider block c has moved 57 mm to the

block b moves downward with a constant velocity of 20 mms at t0 block a moving upward with a constant acceleration and

  Starting from rest the motorboat travels around the

starting from rest the motorboat travels around the circular pathp 50m at a speed v0.8tms where t is in seconds.

  Determine the normal stress and shear stress

At a point in a loaded body the stresses relative to an xyz coordinate system are given by the following stresses in MPa xx=xy=40, xz=30, yy=zz=20, xz=0. Determine the normal stress and shear stress on a plane whose outward normal is oriented at angl..

  The water side of the wall of a 70-m long dam is quarter

the water side of the wall of a 70-m long dam is quarter circle with radius of 7-m. determine the hydrostatic force on

  Determine the horizontal component of the force

Exhaust (assumed to have the properties of standard air) leaves the 4-ft-diameter chimney shown in Fig. with a velocity of 6 ft/s. Because of the wind, after a few diameters downstream the exhaust flows in a horizontal direction with the speed of ..

  The velocity of a particle at t2 seconds is 50 ms with an

the velocity of a particle at t2 seconds is 50 ms with an angle of 40 degrees down and to the right. at t6 seconds it

  Describe the importance of ethical communication

Focused, Organized, and Ethical Communication: Describe the importance of ethical communication, particularly in EGR386W. What are some ways in which communication could be unethical, and why might this be concerning to engineers?

  Two infinitely long-vertical-concentric cylinders

A viscous fluid is contained between two infinitely long, vertical, concentric cylinders. The outer cylinder has a radius ro and rotates with an angular velocity v. The inner cylinder is fixed and has a radius ri. Make use of the Navier–Stokes equati..

  Determine whether it has an fcc or bcc crystal structure

Rhodium (Rh) has an atomic weight of 102.91 g/mol and atomic radius of 1.345 Å. Determine whether it has an FCC or BCC crystal structure, if its density is 12.41 g/cm3. What is its lattice constant? Explain your answers.

  Heat pump has heat-transfer addition

A heat pump has heat-transfer addition at 280 K and heat transfer out at 420 K, and the heat-transfer rate out at 420 K is 900 kJ/min. For each case below, determine from both the Clausis inequality and the Carnot principle for a heat pump whether th..

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