520 views
5 votes
5 votes
Which of the following is/are correct? (Mark all the appropriate choices)

  1. Switching the CPU to another process requires performing a state save of the current process and a state restore of a different process.
  2. Whenever an interrupt arrives, the CPU kills the currently executing process.
  3. A typical Operating System allows a process to create threads but not another process.
  4. Only the processes in Ready state are stored in the job queue.

1 Answer

Best answer
9 votes
9 votes
Switching the CPU to another process requires performing a state save of the current process and a state restore of a different process. This task is know as a context switch.
 
  Whenever an interrupt arrives, the CPU must do a state-save of the currently running process, then switch into kernel mode to handle the interrupt, and then do a state-restore of the interrupted process.
 
  Processes may create other processes through appropriate system calls, such as fork or spawn. The process which does the creating is termed the parent of the other process, which is termed its child.
 
  All processes are stored in the job queue. And processes in the Ready state are placed in the ready queue.
selected by
Answer:

Related questions

2 votes
2 votes
1 answer
2
gatecse asked Nov 15, 2020
102 views
Processes in an operating system can be in any of the following states. Choose the proper matching for the given table.$\begin{array}{|l|l|l|}\hline& \textbf{Process Stat...
4 votes
4 votes
1 answer
4