Rewrite the procedure “sched” to avoid the use of “goto” statements.
Modify “sched” so that the text segment and data segment for a program will possibly be allocated in separate main memory areas if a single large area is not immediately available.
If the system crashes and must be “rebooted” the contents of the buffers which were not written out at the time of the crash are lost.
However if a core dump is taken, the contents of the buffers can be obtained and hence the contents of the disk can be brought completely up to date. Outline a detalled plan for carrying out this scheme. How effective do you think it would be?
Explain why the buffer areas declared on line 4720 are 514, and not 512, characters long.
Explain how deadlock situations may arise if there are too few “large” buffers available. What measures can you suggest to alleviate the problem, assuming that increasing the number of buffers is not possible.