The
Fork system call had a problem - if a process forks,
the parent first gets a PCB entry and then calls
Get Free Page function to allocate pages for Stack/User Area pages for the
child. If the
Get Free Page causes the parent process
to change the state to WAIT_MEM, the PCB entry allocated for
the child may also be given for another process. The problem
has been fixed by modifying the
Get Pcb Entry function
in
Process Manager. Two new assignments has been added
to Stage 22 (Semaphores). The changes in the sub-directories
are:-