758 views
1 votes
1 votes
MSQ

 

Consider the following statements, which one of the following is/are TRUE

  1. In fork() system call, child process inherits all the open file descriptors of parent process
  2. In fork() system call,  child process copies the code of the parent process 
  3. In fork() system call,  child process shares the code of the parent process 
  4. User level threads shares the code segment of the process

Please log in or register to answer this question.

Related questions

5 votes
5 votes
8 answers
1
admin asked Oct 25, 2019
3,401 views
Consider the following piece of C code: void main( ) { fork( ); fork( ); exit( ); }How many child processes are created upon execution of this program?
0 votes
0 votes
0 answers
2
admin asked Oct 25, 2019
567 views
Consider a system in which it is desired to separate policy and mechanism for the scheduling of kernel threads. Propose a means of achieving this goal.
0 votes
0 votes
1 answer
3
admin asked Oct 24, 2019
570 views
In a system with threads, is there one stack per thread or one stack per process when user-level threads are used? What about when kernel-level threads are used? Explain....