Exercise 3.3: The reaction description for the controller Controller 2 consists of three tasks as shown...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Exercise 3.3: The reaction description for the controller Controller 2 consists of three tasks as shown in figure 3.8. Split the task A3 into four tasks, each of which writes exactly one of the state variables east, west, nearw, and near. Each task should be described by its read-set, write-set, and update code, along with the necessary precedence constraints. The revised description should have the same set of reactions as the original description. Does this splitting impact output/ input await dependencies? If not, what would be the potential benefits and/ or drawbacks of the revised description compared to the original description? event({arrive, leave}) outw {green, red} west := red; east bool nearw = 0; near := 0 A west signalw : signalw= west event({arrive, leave}) out red A3 west, east, out, outw, neare, nearw east, west, nearw, nearE = A: east signalE signal = east if oute ? arrive then nearE := 1; if oute? leave then nearE := = 0; if outw? arrive then nearw := 1; if outw? leave then nearw := = 0; if 7 neare then east := red else if west {green, red} signalw red then east := green; if - nearw then west: red else if east red then west := green; {green, red) signale Figure 3.8: A Safe Controller for the Railroad Problem Exercise 3.3: The reaction description for the controller Controller 2 consists of three tasks as shown in figure 3.8. Split the task A3 into four tasks, each of which writes exactly one of the state variables east, west, nearw, and near. Each task should be described by its read-set, write-set, and update code, along with the necessary precedence constraints. The revised description should have the same set of reactions as the original description. Does this splitting impact output/ input await dependencies? If not, what would be the potential benefits and/ or drawbacks of the revised description compared to the original description? event({arrive, leave}) outw {green, red} west := red; east bool nearw = 0; near := 0 A west signalw : signalw= west event({arrive, leave}) out red A3 west, east, out, outw, neare, nearw east, west, nearw, nearE = A: east signalE signal = east if oute ? arrive then nearE := 1; if oute? leave then nearE := = 0; if outw? arrive then nearw := 1; if outw? leave then nearw := = 0; if 7 neare then east := red else if west {green, red} signalw red then east := green; if - nearw then west: red else if east red then west := green; {green, red) signale Figure 3.8: A Safe Controller for the Railroad Problem
Expert Answer:
Answer rating: 100% (QA)
Revised task A3 Readset west east out outw neare nearw Writeset east Update code if out arrive then ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
How does servant leadership and modifying verbal behaviors align with each other?
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
What functions are there in the mazeAsn4 module: print_maze(maze) Description: This function displays the maze. The accessible cells are labelled G i.e. green, the blocked cells are labelled R i.e....
-
The following graph shows the relationship between GDP and the budget deficit or surplus. Spending and Tax Receipts " Y Y Gross Domestic Product Y The structural budget would predict a show a Taxes -...
-
The four-member "A" frame is supported at A and E by smooth collars and at G by a pin. All the other joints are ball-and-sockets. If the pin at G will fail when the resultant force there is Fmax,...
-
What red flag was overlooked on the Montague Fellowship Expense Report?
-
Consider the gasoline mileage performance data in Table B.3. a. Use the all-possible-regressions approach to find an appropriate regression model. b. Use stepwise regression to specify a subset...
-
Set up T accounts for Cash, Unearned Ticket Revenue, and Ticket Revenue. Post the following two transactions to the appropriate accounts, indicating each transaction by letter: (a) Sold 1,200 season...
-
1. "Businesses are feeling the impact of the war in Ukraine. Risk managers update their risk profiles due to supply chain disruptions, economic sanctions, and even displaced workforce. These issues...
-
John Wallace is an automotive enthusiast. He has over 25 years of experience as a mechanic for the dealership of a large car manufacturer in Oakville. John also gained experience doing minor body...
-
Amber and Phil work for Owl Box. Amber and Phil both applied for a promotion; they had both been hired by Owl Box at the same time for similar positions and overall have very similar performance...
-
For a large sporting event, broadcasters sold 66 ad slots for a total revenue of $164 million. What was the mean price per ad slot?
-
log a (x 3 y) Write each expression as a sum of logs. Express powers as factors.
-
Mr. Zuro finds the mean height of all 15 students in his statistics class to be 67.0 inches. Just as Mr. Zuro finishes explaining how to get the mean, Danielle walks in late. Danielle is 63.8 inches...
-
Population: 2, 5, 15, 16, 12 Find the population mean or sample mean as indicated.
-
Suppose that data are known to be related through the equation y = ax b . What variables need to be transformed to use linear least-squares to estimate a and b?
-
Due to several job interviews at J.P. Morgan and Credit Suisse, Fatimatou will be missing a few of Professor Grant's Business Law classes during the semester. Fatimatou would like to enter into a...
-
Distinguish between the work performed by public accountants and the work performed by accountants in commerce and industry and in not-for-profit organisations.
-
Frederick (Freddy) Freeweights (age 42) owns and operates a health club called ''Treadmills West.'' The business is located at 4321 Arnold Street, Alpine, CA 91901. Freddy had the following income...
-
Ray and Maria Gomez have been married 3 years. They live at 1610 Quince Ave., McAllen, TX 78701. Ray works for Palm Oil Corporation and Maria works for the City of McAllen. Maria's Social Security...
-
Bill and Guilda each own 50 percent of the stock of Radiata Corporation, an S corporation. Guilda's basis in her stock is $25,000. On July 31, 2012, Bill sells his stock, with a basis of $40,000, to...
-
Compare different cooling schedule of simulated annealing.
-
Discuss the perturbation mechanism of simulated annealing.
-
What are the pros and cons of GA and SA? Can we conceive of a framework that combines the best of both worlds?
Study smarter with the SolutionInn App