ALL PRINTABLE PDF BOOKS FREE DOWNLOAD <<CLICK HERE>>
ALL PRINTABLE PDF BOOKS FREE DOWNLOAD <<CLICK HERE>>
Operating system mcqs threads fork exec


Question 1 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
The following program results in the creation of? main() { if(fork()>0) sleep(100); }
an orphan process | |
a zombie process | |
a process that executes forever | |
none of the mentioned |
Question 2 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
Which of the following calls never returns an error?
getpid | |
fork | |
ioctl | |
open |
Question 3 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
A fork system call will fail if .....
the previously executed statement is also a fork call | |
the limit on the maximum number of processes in the system would be executed | |
the limit on the minimum number of processes that can be under execution by a single user would be executed | |
all of the mentioned |
Question 4 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
How many times the following C program prints yes? main() { fork();fork();printf("yes"); }
only once | |
twice | |
four times | |
eight times |
Question 5 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
If a thread invokes the exec system call .....
only the exec executes as a separate process | |
the program specified in the parameter to exec will replace the entire process | |
the exec is ignored as it is invoked by a thread | |
none of the mentioned |
There are 5 questions to complete.