Threads
1. A single thread of control allows the process to perform __________
A.  only one task at a time B.  multiple tasks at a time C.  only two tasks at a time D.  all of the mentioned
2. What is the objective of multiprogramming?
A.  Have some process running at all times B.  Have multiple programs waiting in a queue ready to run C.  To minimize CPU utilization D.  None of the mentioned
3. Which one of the following is not shared by threads?
A.  program counter B.  stack C.  both program counter and stack D.  none of the mentioned
4. A process can be ___________
A.  single threaded B.  multithreaded C.  both single threaded and multithreaded D.  none of the mentioned
5. If one thread opens a file with read privileges then ___________
A.  other threads in the another process can also read from that file B.  other threads in the same process can also read from that file C.  any other thread can not read from that file D.  all of the mentioned
6. The time required to create a new thread in an existing process is ___________
A.  greater than the time required to create a new process B.  less than the time required to create a new process C.  equal to the time required to create a new process D.  none of the mentioned
7. When the event for which a thread is blocked occurs?
A.  thread moves to the ready queue B.  thread remains blocked C.  thread completes D.  a new thread is provided
8. The jacketing technique is used to ___________
A.  convert a blocking system call into non blocking system call B.  create a new thread C.  communicate between threads D.  terminate a thread
9. Termination of the process terminates ___________
A.  first thread of the process B.  first two threads of the process C.  all threads within the process D.  no thread within the process
10. Which one of the following is not a valid state of a thread?
A.  running B.  parsing C.  ready D.  blocked