What is the difference between fork() and vfork()?



What is the difference between fork() and vfork()?..

Answer / nashiinformaticssolutions

• fork(): Creates a child process with a separate memory space.
• vfork(): Shares the memory space with the parent until exec() or _exit() is called.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do we use stack

6 Answers  


What is the explanation for cyclic nature of data types in c?

0 Answers  


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

0 Answers  


how to convert binary to decimal and decimal to binary in C lanaguage

7 Answers   BPO, Far East Promotions, IBM, RBS,


how can i calculate mean,median,mode by using c program

1 Answers   HCL,






write a program that eliminates the value of mathematical constant e by using the formula e=1+1/1!+1/2!+1/3!+

1 Answers   Reliance,


what is output of the following statetment?Printf(“%x”, -1<<4); ?

5 Answers  


What does p mean in physics?

0 Answers  


write a reverse string to print a stars.(with out using logic) ***** **** *** ** *

2 Answers  


What is p in text message?

0 Answers  


write a program to interchange the value between two variable without using loop

1 Answers  


Given an array A[n+m] of n+m numbers, where A[1] ... A[n] is sorted and A[n+1] ... A[n+m] is sorted. Design a linear time algorithm to obtain A[1...n+m] sorted using only O(1) extra space. Time Complexity of your algorithm should be O(n) and Space Complexity O(1).

0 Answers  


Categories