Answered step by step
Verified Expert Solution
Question
1 Approved Answer
8. TASK 3 Write (and submit) a PYTHON program where a parent process creates a child process (lets call this child process C), which then
8. TASK 3 Write (and submit) a PYTHON program where a parent process creates a child process (lets call this child process C), which then in turn creates two child processes of its own (denoted GC1 and GC1 - from the point of view of the original process, these are grandchildren). Thereafter in your code, make C turn in to an orphan process and both GC1 and GC2 turn in to zombie processes, for at least 10 seconds. (You should check your code works by using the top command to check for the two zombies.) 9. TASK 4 Study the programs pipedemo.py and pipes2.py covered in lectures. Following this, write and submit a PYTHON program with the following behaviour: A parent process creates two child processes; then the first child process reads in some text from the user, and sends it via a pipe to the second chile process: thereafter the second child process reverses all the characters in the string and sends the reversed string back to the first child process (via a second pipe); finally the first chile process prints the reversed string to the screen
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started