1,029 views

2 Answers

1 votes
1 votes
True.

When a fork() system called on parent process (say p1) then it created a image of process P1 (say P2). So P1 has to create a new entry for p2 in the open file table.
0 votes
0 votes

ans is true  .because whenever fork calls a parent process ,then OS provides a new memory area in a main memory where a new process called  child process which have exactly the same content as in parent process,but both will have different memory address space. and thier operation will be independent of others.

and here the open file table term seems the same meaning as provding a memory area in a available space.

Related questions

2 votes
2 votes
3 answers
1
Philosophical_Virus asked Dec 10, 2023
766 views
Int main (){fork();printf("a");fork();printf("b");return 0;}How many distinct outputs are possible of above code? And also give outputs
0 votes
0 votes
1 answer
2
Erwin Smith asked Apr 11, 2023
756 views
void main() { int n = 1; if(fork()==0) { n = n<<1; printf(“%d, “, n); n = n <<1; } if(fork()==0) n=n+700; printf(“%d, “,n); }Which of the following output is not ...
9 votes
9 votes
2 answers
4
nandini gupta asked Aug 12, 2018
4,627 views
A process execute the code: main() { fork(); fork() && fork() || fork(); fork(); printf("Hi"); } The number of times "Hi" will be printed is