Data-Structures
November 25, 2023
Database-Management-System
November 25, 2023
Data-Structures
November 25, 2023
Database-Management-System
November 25, 2023

Operating-Systems

Question 30

A process executes the code

fork();
fork();
fork();

The total number of child processes created is

A
3
B
4
C
7
D
8
Question 30 Explanation: 
The no. of child process created = 2n – 1 = 23 – 1 = 7 (where n is number of fork() statements)
7 are child processes.
Correct Answer: C
Question 30 Explanation: 
The no. of child process created = 2n – 1 = 23 – 1 = 7 (where n is number of fork() statements)
7 are child processes.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x