Now the read statements will be executed in three steps:
There are now a lot more possibilities of the values in the buffers
depending on where the context switches take place.
Figure out a sequence that will end up with the parent having
acde and the child with bfgh. Make a log file as
before, this time inserting the comment
Program 2, Not atomic with acde and bfgh.
Rename the log directory program2test3 and create a new
logs directory.
Now reset and run it again. Figure out a sequence of context switches
that will leave the file with abCD after both processes have
finished. Log the result as before. The comment should be:
Program 3 with output abCD
Rename the log directory program3test and make a new empty
logs directory.