Electronic Copy Requirements: Upload your hard copy source code in plain text format and use the following naming convention: name your file with last name and first initial underscore assignment name...

This is the assignment attached.


Electronic Copy Requirements: Upload your hard copy source code in plain text format and use the following naming convention: name your file with last name and first initial underscore assignment name and appropriate extension for c source code files. I would use: the following name hamiltonj_proj1.c. Upload your source code to your account in the Campus VM. Compile your source code using gcc in your VM. Upload your correctly running code to the assignment page and name your compiled binary with last name and first initial underscore assignment with an “.exe” extension. (Unix-based systems execute files based on the magic number, not the file extension, the use of “.exe” is simply as an aid to grading.) I would name my binary file hamiltonj_proj2.exe. Mandatory use of the Campus VM: You are free to write your program on any platform you wish, BUT you must compile your code using gcc in your virtual machine on the VM Problem Statement: Develop a "correct solution" to the multiple dimensioned, multiple producer/consumer (That is multiple producers > 3 and multiple consumers > 3) problem that send and receive messages directly among themselves. Make sure that each message is received by one and only one consumer and that every producer and consumer is treated in a fair manner (no starvation). No centralized task manager is allowed. That is, you cannot simply queue all requests from each producer and then sequentially assign them to consumers. No common shared memory. Producer: 1: if msg from Consumer, place msg on queue w/timestamp 2: send ack to Consumer (I.e., I have a resource) Consumer: 1: determines resource need. 2: receives resource and processes it, return to step 1 To demonstrate your solution, you must illustrate it with actual running code (that completely documents your solution), and examples. (I.e., a correct implementation of Presser, Computing Surveys, 7,1, March 1975, pp.21-44). Use gcc on your Campus VM to implement your solution.
Feb 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here