Q24
Which of the following statements about threads is/are TRUE?
More than one option can be correct.
Show answer without attempting
Answer: D
GATE CS · Operating Systems · 4 questions
4 Processes and Threads questions from GATE CS papers (2024), each with the official answer key. Part of Operating Systems. Answer any question right here and it is marked straight away, or practise them one at a time.
Answer: D
Answer: B, C
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--;
}printf statement is executed is _______Answer: 14
Answer: A, B
0/40 correct0 marks