...
GATE 2004-IT
October 5, 2023
Operating-Systems
October 5, 2023
GATE 2004-IT
October 5, 2023
Operating-Systems
October 5, 2023

Operating-Systems

Question 11

A process executes the following segment of code:

for(i = 1; i < = n; i++)
   fork();

The number of new processes created is

A
n
B
n(n+1)/2
C
2n – 1
D
3n – 1
Question 11 Explanation: 
The number of new processes or child processes created is,
2n – 1.
Correct Answer: C
Question 11 Explanation: 
The number of new processes or child processes created is,
2n – 1.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!