Back to the 2022 paper

Module 2: Processes & Scheduling

20222m

A process executes the following segment of code:

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

The number of new processes created is:

(i) n
(ii) (n(n+1))/2
(iii) 2^n - 1
(iv) 2^n

Similar questions