Assignments 2
Team 1 - process hierachy Create the system call pid_father() which returns the pid of the father (see task_struct). Make init creates one child which creates one grandson. Both init and grandson continually prints "init" and father's pid, however, the child process, exits. What happens to the grandson parent? Study the linux source code and show how the kernel changes the grandson's father. Team 2 - process switch Last year, Shibatas's team answered the following question: Create 2 system calls: block(pid) blocks the pid process inserting it in a blocked processes queue. error = unblock() which unblock the first process in the blocked queue returning error = 0, or does nothing, and returns error = 1. Test his solution making: - init creates two children. First child continually prints "1" and second child continually prints "2". - init continually blocks first child (you must see a lot of "2"),...