| | | | MCQ Tutorial - Linux->Process | | | | 61.) Solaris real time class priority is | | Options are: | | A.) 0-59
| | B.) 160-169
| | C.) 100-159
| | D.) 60-99
| | Correct Option: C | | | | | | | 62.) How many times printf() will be executed in the below mentioned program?
main() { int i;
for (i = 0; i < 4; i++) fork(); printf("my pid = %d ", getpid()); } | | Options are: | | A.) 32
| | B.) 16
| | C.) 4
| | D.) 8
| | Correct Option: B | | | | | | | 63.) How do you get parent process identification number? | | Options are: | | A.) getppid()
| | B.) parentid()
| | C.) waitpid
| | D.) getpid()
| | Correct Option: A | | | | | | | 64.) Fork returns _____ to parent process on success | | Options are: | | A.) 0
| | B.) Parent process id
| | C.) None of the options
| | D.) Child process id
| | Correct Option: D | | | | | | | 65.) In Linux kernel-2.6 Real time priority ranges from | | Options are: | | A.) 0 to 99
| | B.) 100 to 139
| | C.) 0 to 139
| | D.) -20 to 19
| | Correct Option: A | | | | | | | | | | | |