⟩ Pipes are used rather than temporary files for communication between the various stages of compilation in gcc when a) -pipe option is used b) -temp option is used c) -disable -temp option is used d) none of the mentioned
a) -pipe option is used
a) -pipe option is used
What is output of the following program? int main() { fork(); fork(); fork(); if (wait(0) == -1) printf("leaf childn"); } a) "leaf child" will be printed 1 times b) "leaf child" will be printed 3 times c) "leaf child" will be printed 4 times d) "leaf child" will be printed 8 times
What is the output of the below code? void exit_handler1(); void exit_handler2(); int main() { int pid; atexit(exit_handler1); atexit(exit_handler2); pid = fork(); if(pid == 0) { _exit(0); } else { sleep(2); exit(0); } return 0; } a) Only child executes the exit_handler 1 and 2. b) Only parent executes the exit_handler 1 and 2. c) Both parent and child executes the exit_handler 1 and 2. d) Neither parent nor child executes the exit_handler 1 and 2.
The maximum time slice that can be given to a process in Linux (where tick is 10ms) is a) 150ms b) 10ms c) 300 ms d) 600ms
The process which terminates before the parent process exits becomes a) Zombie b) Orphan c) Child d) None of the above
Nice can be used by an ordinary process to a) increase the priority of a process b) decrease the priority of a process c) increase or decrease the priority of a process
Which represents the user home directory a) / b) . c) .. d) ~
In Linux kernel-2.6 Real time priority ranges from a) 0 to 99 b) 0 to 139 c) -20 to 19 d) 100 to 139
Solaris system class priority is a) 0-59 b) 60-99 c) 100-159 d) 160-169
If a file is removed in Unix using 'rm' then a) The file can be recovered by a normal user b) The file cannot be recovered by a user c) The file can be fully recovered provided the sytem is not rebooted d) The file will be moved to /lost+found directory and can be recovered only by administrator's intervention
Solaris real time class priority is a) 0-59 b) 60-99 c) 100-159 d) 160-169