In: Computer Science
true or false questions:
1. message passing can be unidirected, bidirected, and undirected.
2. Process swap operation is performed to take one process out of the CPU and load new one.
3. When the error occurs within the process which mechanism is invoked for process switch?
4. Termination of the parent process will lead to the termination of its children processes.
multiple choice questions:
1.
Which programming language was used in the Simple Batch Systems?
JCL |
||
FORTRAN |
||
C |
||
COBOL |
2.
For which systems context switch appeared?
Simple Batch Systems |
||
Multiprogramming Systems |
||
Time-sharing Systems |
||
Distributed System |
3.
Which register contains information about condition codes?
MDR |
||
PSW |
||
PC |
||
MAR |
4.
What is responsible for Interrupt Handling?
Hardware |
||
Software |
||
Both |
||
None |
5.
The context of a process in the PCB of a process does not contain:
a. |
a) the value of the CPU registers |
|
b. |
b) the process state |
|
c. |
c) memory-management information |
|
d. |
d) context switch time |
6.
Which of the following does not interrupt a running process?
a. |
a) A device |
|
b. |
b) Timer |
|
c. |
c) Scheduler process |
|
d. |
d) Power failure |
True/False Solutions:
1)message passing can be unidirected, bidirected, and undirected. Ans:True
2)Process swap operation is performed to take one process out of the CPU and load new one. Ans: True
3)When the error occurs within the process which mechanism is invoked for process switch? Ans: Context-switch Mechanism
4)Termination of the parent process will lead to the termination of its children processes. Ans:True.
Multiple choice questions:Solution
1)Which programming language was used in the Simple Batch Systems? Ans : JCL (Job Control Language) In Simple Batch Systems JCL (Job Control Language) was used because there is no direct communication happens between user and the computer,then user has to submit a job to a computer operator,then computer operator places a batch of several jobs on an input device
2)For which systems context switch appeared? Ans: Time-sharing Systems. In Time-sharing Systems each task given some time to execute so each user gets time of CPU and after time interval is over OS switches over to next task.
3)Which register contains information about condition codes? Ans: PSW (Program Status Word) Register PSW contain information about condition codes because it contain some flags.Also MDR(Memory Data Register) writes data to memory on memory address stored in MAR,MAR(Memory Address Register) stores the memory address from which data has to fetched,PC(Program Counter) contains address of a instruction being executing at current time.
4)What is responsible for Interrupt Handling? Ans: Both Both hardware and software are responsible for interrupt handling.
5) The context of a process in the PCB of a process does not contain: Ans: d) context switch time Context of a process in the PCB(Process Control Block) contain of a process in the,the process state,memory-management information only.
6)Which of the following does not interrupt a running process? Ans: c) Scheduler process Scheduler process does not interrupt a running process because it job is to select the processes for Short-term schedular,long-term schedular and mid-term schedular.Whereas other options interrupt running process.