The following program results in the creation of? main() { if(fork()>0) sleep(100); }
A. An orphan process
B. A zombie process
C. A process that executes forever
D. None of the mentioned
If a kernel thread performs a blocking system call, ____________
A. The kernel can schedule another thread in the application for execution
B. The kernel cannot schedule another thread in the same application for execution
C. The kernel must schedule another thread of a different application for execution
D. The kernel must schedule another thread of the same application on a different processor
Because the kernel thread management is done by the Operating System itself ___________
A. Kernel threads are faster to create than user threads
B. Kernel threads are slower to create than user threads
C. Kernel threads are easier to manage as well as create then user threads
D. None of the mentioned
If the kernel is single threaded, then any user level thread performing a blocking system call will ___________
A. Cause the entire process to run along with the other threads
B. Cause the thread to block with the other threads running
C. Cause the entire process to block even if the other threads are available to run
D. None of the mentioned
The kernel is _______ of user threads.
A. A part of
B. The creator of
C. Unaware of
D. Aware of
Multithreading on a multi – CPU machine ___________
A. Decreases concurrency
B. Increases concurrency
C. Doesn’t affect the concurrency
D. Can increase or decrease the concurrency
Resource sharing helps ___________
A. Share the memory and resources of the process to which the threads belong
B. An application have several different threads of activity all within the same address space
C. Reduce the address space that a process could potentially use
D. All of the mentioned
Multithreading an interactive program will increase responsiveness to the user by ___________
A. Continuing to run even if a part of it is blocked
B. Waiting for one part to finish before the other begins
C. Asking the user to decide the order of multithreading
D. None of the mentioned