New

Learn smart - Learn online. Upto 80% off on courses for a limited time. View Courses

Securing Higher Grades Costing Your Pocket? Book Your Assignment at The Lowest Price Now!
loader
Add File

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!

Stuck on Your Question?

Get 24x7 live help from our Top Tutors. All subjects covered.

loader
250 words

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Students Who Viewed This Also Studied

9 Pages
CS 361 Algorithms and Data Structures

Task Problem Description 1. Your assignment is to generate a simulation of a Ship Terminal as it interacts with a rrail road switching yard. 2. Ships arrive with a random assortment of containers, ...

Course

CS 361

Subject

Programing

University

The University of New Mexico

Season

Spring

2 Pages
College Automation System

The topic is "College Automation System" it should be in Python language . content should be like when we visit a site of a university we see a home page sub-headings , login page (for staff and stude ...

Type

Assignment

Subject

Programing

0 Page
Parent Child Relationship

...

Course

CTWR526

Subject

Programing

University

University of Southern California

Season

spring

10 Pages
ITC91001 IT Entrepreneurship and Innovation

Task: Overview:  Prepare a business model canvas and a prototype (minimum viable product). Present your product in class. Students need to form a group for this assignment. Each group can have ...

Course

ITC91001

Type

Programming

Subject

Programing

University

Southern Cross University

ELE3307- Real-Time Software Design

Question

Answered

Design

The application must be designed using multiple processes. At least the following 5 processes shall be included (note that the first process spawns the other processes at runtime):

1. A Startup and Monitor process that sets up any common variables (e.g. pipes and/or semaphores), spawns the other processes (including the simulator) using the POSIX fork() call and monitors the other processes for expected or unexpected termination.

 As each child is spawned, the Startup and Monitor process shall print the name (e.g.“Controller’) and pid of the process.

 When a child of the Startup and Monitor process terminates, the Startup and Monitor process shall print the name and pid of the process which has terminated and the associated termination status code.

 The child processes spawned at startup shall overlay themselves using the POSIX execl()call, passing any required command line arguments and using relative file paths to executables.

 As far as possible, all messages which are to be printed by the Startup and Monitor process shall be sent via an anonymous pipe to the Display process for printing. This will not always be possible e.g. before the Display process has been spawned and has

overlayed itself, in which case it is acceptable for the Startup and Monitor process to print directly to the standard output.

2. A Controller process to control the quadcopter. The requirements for this process are basically the same as those specified in Assignment 1 Part A and Part B, so you do not need

to change very much in terms of functionality for this process. However, any text to be printed shall not be printed directly to the standard output, rather it shall be relayed to the

Display process via an anonymous pipe for printing.

3. A Display process to display messages received via anonymous pipes from the Startup/Monitor and Controller processes to the standard output. The rationale for a separate Display process is that corruption can occur if multiple processes attempt to print to a single

terminal window simultaneously or near simultaneously, therefore all display output should be handled by a single process as far as possible.

4. The Simulator process which simulates the operation of the quadcopter. Because the simulator from Assignment 1 prints almost identical information to the controller, and because there will only be a single terminal window in Assignment 2, it is not required that

the Simulator process prints any information directly or sends any information to the Display process via an anonymous pipe or any other means of IPC. Some other source code changes will be required to the Simulator process to support the Battery Recharge process because the simulator currently maintains its battery percentage value independently of the corresponding value stored in the shared memory segment (i.e. it currently writes to the battery percentage field in shared memory, but does not read from it).

5. A Battery Recharge process to effectively reduce the quadcopter battery discharge rate while in flight using energy gleaned from a solar panel. This process shall meet the following

requirements:

ELE3307 Real-Time Systems Semester 2, 2019

Page 3 of 5

 It shall add to the current battery charge remaining at a rate of 0.2% per second of simulation time that the quadcopter is at its flight height (we will just assume it is always sunny for this assignment). Therefore, if the battery charge remaining percentage at

simulation time t seconds is e(t), then at simulation time t+Δt seconds it will be e(t+Δt) = e(t) + 0.2 * Δt - d(Δt) where d(Δt) is the amount of battery discharge caused by hovering/flying over the same time interval.

 It shall not add to the battery charge remaining if the quadcopter is not at flight height.

You need to consider the synchronization requirements for the whole program in your design because no synchronization was employed at all in Assignment 1. Selective use of synchronization is important because if you use synchronization where it is not really needed, you may slow down the operation of your program considerably. Explain briefly your synchronization design in your report. You may it easier or even necessary to use named POSIX semaphores rather than unnamed

POSIX semaphores because of the use of process overlaying in the assignment.

ELE3307- Real-Time Software Design

Answer in Detail

Solved by qualified expert

Get Access to This Answer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

21 More Pages to Come in This Document. Get access to the complete answer.

MyAssignmenthelp.com is the most accomplished and credible online dissertation assistance provider in USA, aimed at offering top-quality academic help at affordable price. Despite providing cheap dissertation help, we never let our dissertation writers compromise with the quality of papers. Hence, we have gained the status of best dissertation writing company in USA. Apart from writing help, our dissertation tutors also provide dissertation writing guidelines in order to help students in the best possible manner.

More ELE3307- Real-Time Software Design: Questions & Answers

Q
icon

We aren't endorsed by this University

CS 361 Algorithms and Data Structures

Task Problem Description 1. Your assignment is to generate a simulation of a Ship Terminal as it interacts with a rrail road switching yard. 2. Ships arrive with a random assortment of containers, each container has an ID and a destination code. 3. The containers are moved from the ship to Trans ...

View Answer
Q

College Automation System

The topic is "College Automation System" it should be in Python language . content should be like when we visit a site of a university we see a home page sub-headings , login page (for staff and student ) staff to update the marks of internal and semester exam and also to update the attendance of th ...

View Answer
Q
icon

We aren't endorsed by this University

Parent Child Relationship

...

View Answer
Q
icon

We aren't endorsed by this University

ITC91001 IT Entrepreneurship and Innovation

Task: Overview:  Prepare a business model canvas and a prototype (minimum viable product). Present your product in class. Students need to form a group for this assignment. Each group can have 3 students at maximum. Each group needs to work on a single business proposal. The business proposa ...

View Answer

Content Removal Request

If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the content removal request.

Choose Our Best Expert to Help You

5% Cashback

On APP - grab it while it lasts!

Download app now (or) Scan the QR code

*Offer eligible for first 3 orders ordered through app!

screener
ribbon
callback request mobile
Have any Query?