Explain fork() system call?

Answers were Sorted based on User's Feedback



Explain fork() system call?..

Answer / shilpa

The 'fork()' call is used to create a new process from an
existing process. The new process is called the child
process, and the existing process is called the parent. We
can tell which is which by checking the return value
from 'fork()'

Is This Answer Correct ?    69 Yes 5 No

Explain fork() system call?..

Answer / anchal

fork is a system call used for creating child processes of a
parent process.it returns the process id of the created
child process.after that pid(process id ) is checked if it
is negative,it means no child process is created,pid==0
implies the id of the newly created process and pid>0 is the
id of child process given to the parent process.the
statements following fork system call are executed by both
the parent and child process.and one more thing,the parent
and child process have the exact copy of address space but
it exist separately for the two processes.

Is This Answer Correct ?    45 Yes 1 No

Explain fork() system call?..

Answer / suresh babu

fork() is the system call to creat the child process to the
existing process.The child process copy the source code of
the parent process and assaign new memory address.After
fork call both parent and child executes the followed
instruction.fork call returns the pid of child process to
parent and returns 0 to child process.

Is This Answer Correct ?    40 Yes 7 No

Explain fork() system call?..

Answer / dil ka don

fork() sytem call create child process to handle multi
processing activities, It inherites following fields from
parent.
environment variables, Filedescriptor, data part
I will think and write ...

Is This Answer Correct ?    43 Yes 13 No

Explain fork() system call?..

Answer / rajkumar adepu

fork() system call creates a process exactly the same as parent process,called as child process of that parent process.It has same attributes,properties of parent process.

Both processes(parent and child) start their execution right after the system call fork().
Since both processes have identical but separate address spaces, those variables initialized before the fork() call have the same values in both address spaces. Since every process has its own address space, any modifications will be independent of the others. In other words, if the parent changes the value of its variable, the modification will only affect the variable in the parent process's address space. Other address spaces created by fork() calls will not be affected even though they have identical variable names.

Is This Answer Correct ?    15 Yes 1 No

Explain fork() system call?..

Answer / deep

fork() system call are used in unix for making child process.
whenever parent procces call fork()system call it create
child process and copy the sorce code of parent process in
child process and return the p_id of child process and
creating child process return itself is zero.

Is This Answer Correct ?    19 Yes 7 No

Explain fork() system call?..

Answer / sania behera

it is nothing but the system call function which works by
copying the parentfile and makes new process

Is This Answer Correct ?    14 Yes 4 No

Explain fork() system call?..

Answer / jeetendra

fork system calls creates new process from existing one.new process are called child process. code of parent process is copied to child process in new memory location.these child process can handle many process.

Is This Answer Correct ?    13 Yes 4 No

Explain fork() system call?..

Answer / priyanka sial

Fork() system is used to create processes. it takes no
argument and returns a process ID.
The purpose of fork is to create a new process which
becomes the child process of caller. After a new child
process is created, both processes will execute the next
instruction following the fork system call.

Is This Answer Correct ?    8 Yes 4 No

Explain fork() system call?..

Answer / carol

fork() is a unix system call that is used to create a child
process.Whenever fork()is called the image of the parent is
copied to the child process(new)memory location.fork()
return the child process process id to the parent process
and 0 to the child process.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Unix IPC Interview Questions

What Happens when you execute a command?

3 Answers  


How can a parent and child process communicate?

3 Answers   TCS,


what is the very first process created by kernell

5 Answers  


Explain a zombie?

0 Answers  


What is Inode.

2 Answers   HCL,






what is the process id for kernel process?

8 Answers   IBM, ITI, Military Engineer Services, Remo, TATA,


Explain how do you execute one program from within another?

0 Answers  


What are the various schemes available?

0 Answers  


How to write the program on full-duplex communication on bidirectional(e.g using two pipes)?

0 Answers  


What is ln(linking)?

0 Answers  


Please explain fork() system call?

0 Answers  


Which ipc is the fastest in unix?

0 Answers  


Categories