Professional Documents
Culture Documents
CSC322 BSE5B LabMidSP24
CSC322 BSE5B LabMidSP24
CSC322 BSE5B LabMidSP24
This is a take-home exam and MUST be submitted within the allocated time on MS
TEAMS.
Q1: Write a C program that forks a child that ultimately becomes a zombie process. This
zombie process must remain in the system for at least 10 seconds. (10marks)
Q2: Write a program (in C/C++ only) to implement the following scheme:
Parent process creates two child processes. The first child process takes three numbers
from the user, adds them and sends the result to second child. Second child process reads
and prints the result. The parent process should wait for the child processes to complete
their execution. Use the required system calls for IPC to complete the operation as desired.
(10 marks)