CS 3214 Spring 2020 Test 2
------------------------------
This test has 5 problems for a total of 50 pts, all of which involve
examining programs. This test is open book/open computer/open Internet,
but asking humans for assistance (including on Internet forums or Q&A
sites) is a violation of the honor code, as is any collaboration between
students in the class.
If you have any doubts about any of the questions, please contact
staff at cs3214-staff@cs.vt.edu. Do not post on Piazza.
To facilitate grading, please submit a tar archive with the
following 5 files:
(12 pts) Problem 1 "Lost header": header.h (*)
(8 pts) Problem 2 "Lost chickens": shutdown.txt (**)
(8 pts) Problem 3 "Social distance": socialdistance.c
(12 pts) Problem 4 "Lost ordering": ordering.c
(10 pts) Problem 5 "Lost locks": bufferrace.c
Overall number of lines of code to write is, very conservatively
estimated, less than 30.
Problem 1 has a file with instructions; the other 4 problems are
explained in a comment at the top of the code.
All codes is contained in the PDF file that is part of your .zip
archive, which will also include copies of the .c files.
You can add your changes directly to these .c files for problems
3, 4, and 5.
(*) Note that additional comments are required in the header.h file,
see instructions for this problem.
(**) This question asks for an explanation, hence a .txt file.
lostheader.txt