Question

In the 1974 paper The UNIX Time-Sharing System, Dennis Ritchie and Ken Thompson of Bell Laboratories...

In the 1974 paper The UNIX Time-Sharing System, Dennis Ritchie and Ken Thompson of Bell Laboratories describe the original implementation of forking processes as follows: Except while UNIX is bootstrapping itself into operation, a new process can come into existence only by use of the fork system call: processid = fork(label) When fork is executed by a process, it splits into two independently executing processes. The two processes have independent copies of the original core image, and share any open files. The new processes differ only in that one is considered the parent process: in the parent, control returns directly from the fork, while in the child, control is passed to location label. The processid returned by the fork call is the identification of the other process. Note: RItchie and Thompson use the word "core" to mean "memory". In the 1960's, memory was implemented using iron core rings, and the term "core" was commonly used to describe memory. Ritchie and Thompson also use the word "image" to describe the current state of a process; the memory, registers, etc.

Describe in a sentence or two, the differences from the original implementation of fork to the current implementation, the one you used in the shell assignment.

Homework Answers

Answer #1

The fork command creates two copies of itself being the parent process and the child process.

The fork() call is one half of the “start a new process to run this command with these arguments”.

The other half is the execve() family of system calls, which specify what executable to run, the value(s) of ARGV it will receive, and the environment it will inherit.

Using two syscalls (fork() and execve()) allows more flexibility in setting things up (such as redirecting stdin, stdout, stderr) before running the executable.

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
Item 1 In the case below, the original source material is given along with a sample...
Item 1 In the case below, the original source material is given along with a sample of student work. Determine the type of plagiarism by clicking the appropriate radio button. Original Source Material Student Version In contrast to the transmittal model illustrated by the classroom lecture-note taking scenario, the constructivist model places students at the center of the process--actively participating in thinking and discussing ideas while making meaning for themselves. And the professor, instead of being the "sage on the...
I did already posted this question before, I did get the answer but i am not...
I did already posted this question before, I did get the answer but i am not satisfied with the answer i did the code as a solution not the description as my solution, so i am reposting this question again. Please send me the code as my solution not the description In this project, build a simple Unix shell. The shell is the heart of the command-line interface, and thus is central to the Unix/C programming environment. Mastering use of...
Sign In INNOVATION Deep Change: How Operational Innovation Can Transform Your Company by Michael Hammer From...
Sign In INNOVATION Deep Change: How Operational Innovation Can Transform Your Company by Michael Hammer From the April 2004 Issue Save Share 8.95 In 1991, Progressive Insurance, an automobile insurer based in Mayfield Village, Ohio, had approximately $1.3 billion in sales. By 2002, that figure had grown to $9.5 billion. What fashionable strategies did Progressive employ to achieve sevenfold growth in just over a decade? Was it positioned in a high-growth industry? Hardly. Auto insurance is a mature, 100-year-old industry...