MSQ1 mark
Which of the following statements about threads is/are TRUE?
One or more correct
GATE CSE previous year questions · Operating Systems
One or more correct
One or more correct
fork() and wait() system calls. Assume that the code compiles and runs correctly, and that the system calls run successfully without any errors.
int x = 3;
while(x > 0) {
fork();
printf("hello");
wait(NULL);
x--;
}
The total number of times the printf statement is executed is __________Numerical answer
One or more correct