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
Normal 0 false false false EN-IN X-NONE X-NONE MicrosoftInternetExplorer4

Determine how Action implementing instruction’s meaning are a actually carried out   Action implementing meaning of instruction are a actually carried out Instruction executio

What are the necessary conditions for deadlocks? 1. Mutual exclusion :  Only one process at a time is able to use the resource. 2. Hold and wait :  A process should be holdi

Medium term scheduling is form of the swapping operation. This attaches to processes that are in a suspended or blocked state. They are swapped out of real-memory storage until t

LRU page replacement In least lately used page replacement algorithm we will replace that page that hasn't been used for the longest period of time. This is similar as an opti

Ask questiWhat is dispatcheron #Minimum 100 words accepted#

define semaphore. how can we use semaphore to deal with n-process critical section problem.

Question: a) Each process is represented in the operating system by a process control block (PCB). The PCB contains many pieces of information associated with a specific proce

Organizational, Structural, Logical and Execution Relationships Between Important System Components in Linux Kernel Subsystems A. Description of the Project You are require

Essential Properties of Operating System 1. Batch: Jobs with similar needs are batched together and run through the computer as a group by an operator or automatic job sequen