MCQ:
1. A process control block___:
     a. Includes information on the process’s state
     b. Stores the address of the next interaction to be processed by different process
     c. Determines which process is to be executed next
     d. Is an example pf a process queue
  2. The___ of a process contains temporary data such as function parameters, return
     address, and local variables.
     a. Heap
     b. Data section
     c. Program counter
     d. Stack
  3. When a child process is created, which of the following is a possibility in terms of the
     execution or address space of the child process?
     a. The child process runs concurrently with the parent
     b. The child process has new program loaded into it
     c. The child process is a duplicate of the parent
     d. All of the above
  4. A___ saves the state of the currently running process and restores the state of the next
     process to run:
     a. Save-and-restore
     b. Context switch
     c. State switch
     d. Program counter
  5. The two separate modes of operating in a system are:
     a. Supervisor mode and system mode
     b. Kernel mode and privileged mode
     c. Physical mode and logical mode
     d. User mode and kernel mode
6. A blocking send() and blocking receive() is known as a____:
   a. Synchronized message
   b. Rendezvous
   c. Blocked message
   d. Asynchronous message
7. A process that has terminated, but whose parent has not yet called wait(), is known as
   a_____:
   a. Zombie
   b. Orphan
   c. Terminated
   d. Cascading termination
8. The difference between a program and a process is that program is an active entity and
   process is a passive entity:
   a. True
   b. False
9. Which of the following component of program state is shared across threads in a
   multithreaded process:
   a. Register values
   b. Global variables
   c. Stack memory
   d. All of the above
10.The ____ occurs in first burst occupies the CPU:
   a. Waiting time
   b. Dispatch latency
   c. Convoy effect
   d. System-contention scope
11.A significant problem with priority scheduling is____:
   a. Complexity
   b. Starvation
   c. Determining the length of the next CPU burst
   d. Determining the length of the time quantum
12.pthread_testcancel() method is used in deferred thread cancelation mode:
   a. True
   b. False
13.In RR scheduling, the time quantum should be small with respect to the context time:
   a. True
   b. False
14.One of the multithreading benefits is “Scalability”, where:
   a. Process can take advantage of multiprocessor architectures
   b. Process may allow continued execution if part of the process is blocked
   c. Threads share resources od process, easier than shared memory or message passing
   d. Thread switching lower overhead than context switching
15.A process may have several threads, the signal sent by any thread can be received by:
   a. The thread to which the signal applies
   b. Every thread in the process
   c. Certain threads in the process
   d. All of the above
16.If a process P1 is executing in a CPU, and it wants to perform I/O operation, then P1
   should be move from ___ state to ___ state.
   a. Running, waiting
   b. Running, ready
   c. Running, termination
   d. Waiting, ready
17.___ multithreading model is not most commonly used in the recent operating systems.
   a. One to one
   b. Many to one
   c. One to many
   d. Many to many
18.____ is the most important process in the computer system:
   a. Background process
   b. Foreground process
   c. Service process
   d. Visible process
19.When several processes access the same data concurrently and the outcome of the
   execution depends on the particular order in which the access takes place is called:
   a. Dynamic condition
   b. Race condition
   c. Essential condition
   d. Critical condition
20.____ is one of the multithreaded processes benefits that may allow continued execution
   a process if part pf process is blocked, especially important for user interface:
   a. Economy
   b. Resource sharing
   c. Scalability
   d. None
21.____ gives control of the CPU to the process selected by the short-term scheduler:
   a. Waiting time
   b. Dispatcher module
   c. Convey effect
   d. System-contention scope
22.In RR CPU scheduling, the context switch time is preferable to be smaller than quantum
   time to increase the throughput:
   a. True
   b. False
Q. Why the parent process terminate the execution of its child using abort():
      1. if the children has exceeded the allocated resources to it
      2. if the task requested from the children in not needed anymore
      3. if parent is terminated
Q. List 3 solution to critical problem and explain them:
      4. Mutual exclusion: if Pi is executing in its critical section, no other process can be
         executing in their critical section
      5. Progress: if no process is executing in critical section and there exist some process
         that wish to enter their critical section, the selection of process to enter next
         cannot be postponed indefinitely.
      6. Bounded waiting: a bound must exist on the number of times that other process
         are allowed to enter their critical sections after a process made a request to enter
         and before the request is granted.