Computers and Technology

5processes are characterized by 3 readers and 2 writers. up to two reader processes can be inside their critical section without any writer process. for writer process to go into its critical section, it should check whether there is any reader or writer process is in the critical section. critical section in this problem is reading shared data buffer for reader and updating shared data buffer for writer processes. it is up to you to implement any shared data for readers and writers but you have to specify clearly following things in your sample output. when reader or writer enters its critical section, it has to report whether there are any reader(s) or writer(s) other than itself. you may print out the data you read or write when you implement real buffer. (optional) you have to print out "panic messages" when the rules behind this semi critical section problem are not observed. in your main program, you run the random number generator function to choose process to execute. the chosen process starts (resumes) execution and after one instruction, it will be returned. (you should force each process run exactly one instruction then returns and waiting for its turn.) you can implement this using switch statement in c or c++. do not use any multi-threading nor mutex feature from resume at the right place once it will be chosen to run by keepin lobal counter variable subproject 1: you should implement binary and counting semaphores as studied in the class for this project subproiect2: you should implement swap operation as studied in the class for this project.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:30, Twitches
This first part of the film shows the early history of motion pictures. how accurate do you think the portrayal of the early motion picture industry is? why? is historical accuracy important in films and theatre productions? explain. in the scene where don is going to the party (starting at time code 14: 51), we see a street scene as he first rides with cosmo and then with kathy. what aspects did the filmmaker include to make the scene look and feel like don, cosmo, and kathy are riding in a car on a street? think about elements such as scenery, sound, props, lighting, and so on. a "talkie" picture is shown starting around time code 21: 15. how does the audience in the film react to the "talkie"? what influence do audiences have on film and theatre performances? how do film and theatre actors influence audiences? in the musical scene with cosmo (starting at time code 27: 00), how does the actor use props? what is the result? do you think the use of props effectively fulfilled the artistic vision for this musical number? why or why not?
Answers: 1
image
Computers and Technology, 22.06.2019 15:10, AleciaCassidy
Consider a direct-mapped cache with 216 words in main memory. the cache has 16 blocks of 8 words each. it is a word-addressable computer (rather than a byte-addressable computer which we normally discuss). (a) how many blocks of main memory are there? (b) what is the format of a memory address as seen by the cache, that is, what are the sizes of the tag, cache block, and block offset fields (if they apply)? (c) to which cache block will the memory reference db6316 map?
Answers: 1
image
Computers and Technology, 25.06.2019 01:00, mrstealyogirl40
Holly created a professional development plan to explore how she could advance from her entry-level position to the next step in her career. she has identified her current skills and the skills needed for the job she wants. what should she do now? a) ask a colleague for advice about work-life balance b) identify her areas for improvement c) plan a vacation before she begins her new job d) wait until a position opens before continuing her plan
Answers: 1
image
Computers and Technology, 25.06.2019 03:00, achewitt3965
What judgment would you make about open systems interconnect? not useful that it is a technology that it is a model that it does not pertain to technology
Answers: 1
Do you know the correct answer?
5processes are characterized by 3 readers and 2 writers. up to two reader processes can be inside th...

Questions in other subjects: