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

  Refrigerant 22 enters the compressor of an ideal vapor

refrigerant 22 enters the compressor of an ideal vapor compression refrigeration system as saturated vapor at 2408c

  The pressure altitde is 10000 ft and the tempurature is 80f

a c-130 pilot desires to fly a low-level navigation mission at 4 n milesmin 240 kn ground speed. winds are forecast out

  The coefficient of friction between the load and the

the coefficient of friction between the load and the flat-bed trailer shown is 0.4. knowing that the speed of the rig

  What is the effective strain

What is the effective strain, ε, caused by the rolling? What strain in a tension test (if it were possible) would cause the same amount of strain hardening?

  Determine the two inlet mass flows needed to meet

The heating is to be done in a mixing tank by direct injection of the steam, all of which condenses. Determine the two inlet mass flows needed to meet the desired hot water flow rate.

  An aqueous homogeneous reactor is composed of a homogeneous

an aqueous homogeneous reactor is composed of a homogeneous mixture of uranium nitrite uo2no32 2.81 gcm3 and heavy

  Determine the mechanical energy of air per unit mass

At a certain location, wind is blowing steadily at 10 m/s. Determine the mechanical energy of air per unit mass and the power generation potential of a wind turbine with 60 m diameter blades at that location. Take the air density to be 1.25 kg/m.

  What are the forces acting on workpiece

What are the forces acting on workpiece during turning process. how workpiece should be clamp

  Find ?f/?y and ?f/?z in terms of the partial derivatives

Find ∂f/∂y and ∂f/∂z in terms of the partial derivatives of f with respect to spherical polar coordinates (r, θ, φ) (see Example 3.5).

  Heat transfer occurs until the volume on the inside of the

a piston-cylinder device contains 1 kg of h2o. the water is at 800oc and a pressure of 20 mpa. heat transfer occurs

  Draw a picture showing the dimensions of the pan heat

an aluminum pan whose thermal conductivity is 237 has a flat bottom whose diameter

  A pilot flying his ultralight aircraft at a speed of 60

a pilot flying his ultralight aircraft at a speed of 60 mph. under standard atmospheric conditions what would be the

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