Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do all parts and attach source code and document. Explain how you did it. Credit:15 points Objective: This program assignment is given to the

Please do all parts and attach source code and document. Explain how you did it.
image text in transcribed
Credit:15 points Objective: This program assignment is given to the Operating Systems course to allow the students to figure out how a single process (parent process) creates a child process and how they work on Unix/Linux/Mac OS X/Windows) environment. Additionally, student should combine the code for describing inter-process communication into this assignment. Both parent and child processes interact with each other through shared memory- based communication scheme or message passing scheme Environment: Unix/Linux environment (VM Linux or Triton Server, or Mac OS X), Windows platform Language: C or C+, Java Requirements: i. You have wide range of choices for this assignment. First, design your program to explain the basic concept of the process management in Unix Kernel. This main idea will be evolved to show your understanding on inter-process communication, file processing, etc. ii. Refer to the following system calls: fork). getpido. family of exec, wait), sleep) system calls for process management shmget( shmat), shmdt0, shmctlO for shared memory support or - msgget), msgsnd0. msgrev0, msgctila, etc. for message passing support ii. The program should present that two different processes, both parent and child, execute as they are supposed to iv. The output should contain the screen capture of the execution procedure of the program. v. Interaction between parent and child processes can be provided through inter-process communication schemes, such as shared-memory or message passing schemes. vi. Result should be organized as a document which explains the overview of your program, code, execution results, and the conclusion including justification of your program, lessons you've learned, comments, etc. Note: i. Please try to understand how the local and global variables work across the processes i. read) or write ) functions are used to understand how they work on the different processes. ii. For extra credit, you can also incorporate advanced features, like socket or thread functions, into your code

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

Students also viewed these Databases questions