Fork system call in unix, Operating System

Forking is an important phase of Unix, critical to the support of its design strategies, which encourages the implementation of filters. In Unix, a filter is a process that reads its input from stdin, and gives its output to stdout. A pipeline of these instructions can be strung together by a shell to make new commands. i.e:, one may string together the output of thefind(1) instruction and the input of the wc(1) instruction to prepare a new command that will give a count of files ending in ".cpp" found in the current file system and any subdirectories, as follows:

$ find . -name "*.cpp" -print | wc -l

More usually, forking is also operated by the shell each time a user issues an instruction. A child process is prepared by forking the shell, and the child process is shown, once again by exec, with the code included with the program to be run.

 

 

2444_Fork system call in unix.png

Posted Date: 7/28/2012 8:27:25 AM | Location : United States







Related Discussions:- Fork system call in unix, Assignment Help, Ask Question on Fork system call in unix, Get Answer, Expert's Help, Fork system call in unix Discussions

Write discussion on Fork system call in unix
Your posts are moderated
Related Questions
Q. Explain the File-system manipulation? File-system manipulation there is several details in file allocation, creation, deletion and naming that users should not have to perfo

What are the objectives for a file management system? To meet the data management wants and requirements of the user, which embrace storage of data and the ability to

Device Drivers Communicates straight with peripheral devices (disks, tapes, etc.). Responsible for begin physical I/O operations on the device. Pro

DESIGN GOALS OF WINDOWS XP.DESCRIBE IN DETAIL.

FIFO page replacement This is the easiest page replacement algorithm. At this juncture the 1 st page entering is the 1 st to leave that is the oldest page leaves. To execute


What are the different ways in which a thread can be cancelled? Cancellation of a target thread may happen in two different scenarios: Asynchronous cancellation: One thr

Q. How Program execute in operating system? Program execution- The operating system fills the contents (or sections) of a file into memory as well as begins its execution. A us


Introduction of linux