Question

Describe the relationship between a parent and child process in Linux when they share memory from...

Describe the relationship between a parent and child process in Linux when they share memory from the heap

Homework Answers

Answer #1

In Unix, Fork system call is the only way for user to create a new process.

PID = fork();

It creates two process having identical copies of their user level context except returned PID. Kernel allocates child process as a PID=0.

As part of the Fork process, Kernel allocates memory for the child process u area, regions, and auxiliary page tables, duplicates every region in the parent process and attaches every region to the child process. When the child context is ready, the parent completes its part of fork by changing the child state to “ready to run Gn memory” and by returning the child process ID to the user.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Linux 1. Describe the relationship between user mode and kernel mode during a system call? Explain...
Linux 1. Describe the relationship between user mode and kernel mode during a system call? Explain in detail. 2. In system calls for file input/output, why is buffering needed? Explain in detail.
Pick a pair of concrete classes in the JDK in a parent-child relationship and discuss a...
Pick a pair of concrete classes in the JDK in a parent-child relationship and discuss a few polymorphic and/or overloaded methods. Do not use Object as the parent class - it is too trivial to address the issues to be addressed here, and in any case, Object is the final parent of all classes in Java.
Pick a pair of concrete classes in the JDK in a parent-child relationship and discuss a...
Pick a pair of concrete classes in the JDK in a parent-child relationship and discuss a few polymorphic and/or overloaded methods. Do not use Object as the parent class - it is too trivial to address the issues to be addressed here, and in any case, Object is the final parent of all classes in Java.
C programing language pretend parent process is reading data and child process is writing data. explain...
C programing language pretend parent process is reading data and child process is writing data. explain with pipe and fork function.
A program where parent process counts number of vowels in the given sentence and child process...
A program where parent process counts number of vowels in the given sentence and child process will count number of words in the same sentence. The above programs should use system calls like fork and wait.
Program Assignment 1: Process Management Objective: This program assignment is given to the Operating Systems course...
Program Assignment 1: Process Management 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...
Explain the relationship between synaptic plasticity and learning/memory
Explain the relationship between synaptic plasticity and learning/memory
explore the relationship between memory, metacognition, and problem-solving
explore the relationship between memory, metacognition, and problem-solving
In the relationship between working and long-term memory, does one depend on the other? Why or...
In the relationship between working and long-term memory, does one depend on the other? Why or why not? Can each provide input to the other? Why or why not? What asymmetries, if any, exist in this relationship? Why? How might instruction be different if one or the other is the primary goal of an instructional process? Why?
A researcher is interested in the relationship between concussions and short-term memory loss. To explore this...
A researcher is interested in the relationship between concussions and short-term memory loss. To explore this relationship, the researcher collects data on the number of concussions and number of words recalled on a memory test. Assume SP = -34       SSconcussions =    58        SSnumber of words recalled = 27 Interpret the Pearson correlation coefficient between concussions and number of words recalled in terms of the strength and direction of the relationship: