Implement the same program in rust

Assignment Help Basic Computer Science
Reference no: EM133363793

Software Engineering for Real-Time Embedded Systems

Programming - Multitasking

Multitasking with C and the BeagleBone Black

Update your traffic signal program to be multithreaded:

One thread for each of the traffic signals
Add a wait sensor sensor at each direction - there should be one thread for these as well
Implement this with a push-button
If a light is red but the corresponding wait sensor is triggered (i.e. the button is pushed and held) for 5 seconds, the light should cycle to green without waiting the full 2 minutes

Requirements:

Implement the above updates in C using pthreads and mutexes Wait sensor threads should update a wait timer that the light threads can read. Use mutexes to synchronize the data access

Test code first with your emulator - be sure to print the utsname information during initialization

GPIO pins should be configurable - use #define statements to declare the pin numbers so that your code can be tested by professor or TAs
Ensure code compiles with zero warnings

Run the MISRA code check against your code. Fix as many warnings as applicable / possible. Give a short justification for why you can't fix the remaining ones.

a. Implement the same program in Rust
b. Implement the same program in Ada (verison 95 or above)

Attachment:- Multitasking Assignment.rar

Reference no: EM133363793

Questions Cloud

How does the artificial aquatic environment of the arboretum : How does the artificial aquatic environment of the Arboretum system differ from a natural freshwater system, and how could this affect the ecology of the system
How can i get dallas college stem institution to start : How can I get Dallas College STEM institution to start a Rewilding program/project for elephants, lions, tigers, and rhinos in order to see how see if this can
What are the mechanisms of meiosis that can cause offspring : What are the mechanisms of meiosis that can cause offspring to be genetically different from their parents? Briefly describe each.
Elizabeth kohlberg says that paleontologist was right : Elizabeth Kohlberg says that the paleontologist was right - that there was a great event just before recorded time. What caused this great event?
Implement the same program in rust : SWE 699 Software Engineering for Real-Time Embedded Systems, George Mason University - Implement the above updates in C using pthreads and mutexes Wait sensor
What strengths or weaknesses have been uncovered : What strengths or weaknesses have been uncovered about the fate of Public Health in the world since the beginning of the Pandemic? Are the weaknesses "solvable"
Determine the source of the contamination : Based on the map, can any of the three potential sources of contamination be eliminated? If so, why? What other steps would you need to take to determine
Discuss forces shaping earth surface : Synthesize Notes (You should have information on the left-hand side, this can be keywords & definitions, diagrams, graphic organizers, missed lesson assessment
Why the telescope was such an important factor : Specify why the telescope was such an important factor for proponents of the Heliocentric cosmogony during Galileo's time.Pick one of Galileo's discoveries

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Determining vulnerabilities for database server

Based on this information, write a memo to Ms. Roye describing any CVEs or CAN documents you found related to Oracle 10g.

  Widely used in strategic planning

The SWOT analysis is widely used in strategic planning. Using the Internet, conduct research to learn more about examples of SWOT Analyses applications in successful companies. Post a thread discussing one of the examples. Be sure to include at le..

  Jury selection problem

Review the Marvel case ( appendix) and consider the following jury selection problem. How does the judge rule? How does the prosecutor respond?

  Discuss how the scope of computer security grew

Discuss how the scope of computer security grew from physical security to include :

  Beginning the contingency planning process

The contingency planning process describes comprehensive procedures used by organizations to plan, detect, and respond to various situations.

  About algorithms

You learned about algorithms and how they can be used to increase efficiency, What would be the strengths and limitations of this approach?

  Risk management or assessment-protection of confidential

Risk management or assessment-protection of confidential and personally identifiable information (PII)

  Take physical images of a macintosh device

We are seeing a rapid increase of our employees bringing Mac laptops to the office which is becoming a problem. Take physical images of a Macintosh device

  What nominal annual interest rate

A bank offers to pay $16,020 at the end of a CD's 6-month term if purchased for $15,000. What nominal annual interest rate is the bank offering?

  Identify technologies and trends related to cyber security

Identify technologies and trends related to cyber security that have strategic value for an organization and manage the implementation of those technologies.

  Find the inverse of the rigid body transformation

Write down the 4 × 4 3D matrix to rotate by an angle ? about the y-axis.

  Impact of diploma mills on legitimate educational

What is the impact of diploma mills on legitimate educational institutions? How does one check the credentials of learning institutions to verify legitimacy? What should one look for when selecting an institution of higher learning?

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