Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions

Question

What is perceived self-efficacy?

Answered: 1 week ago