0% found this document useful (0 votes)
56 views

Sheet 4 - Os-1

The document discusses key concepts related to processes in operating systems including the difference between a process and program, process states, process control blocks, context switching, and more. It provides questions to test understanding of these concepts and asks the reader to identify process states, components of process control blocks, the objective of multiprogramming, and other related topics.

Uploaded by

mo.ysr.official
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views

Sheet 4 - Os-1

The document discusses key concepts related to processes in operating systems including the difference between a process and program, process states, process control blocks, context switching, and more. It provides questions to test understanding of these concepts and asks the reader to identify process states, components of process control blocks, the objective of multiprogramming, and other related topics.

Uploaded by

mo.ysr.official
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Sheet 4

I. What is the difference between program and process?


II. What is the Process Concept? What are its components?
III. What is the difference between a mode switch and a context switch?

IV. For the following processing model, complete the


following sentences.
a. ____: A new process has been created but has not yet
been admitted by the OS for its execution.
b. ____: A process that is prepared to execute when
given the opportunity by OS.
c. ____: The process that is currently being executed.
d. _____: A process that cannot execute until some event occurs, such as the completion
of an I/O operation.
e. _____: A process that has been released from the pool of executable processes by the
OS, either because it halted or because it aborted for some errors.
V. List three general categories of information in a process control block.
VI. Why are two modes (user and kernel) needed?
VII. What are the different types of process termination?
VIII. What is a PCB in OS?
IX. What is a process image in OS?
X. Complete the following
1- A process can be terminated due to __________
a. normal exit b. fatal error c. killed by another process d. all of the mentioned
2- What is the ready state of a process?
a. when process is scheduled to run after some execution
b. when process is unable to run until some tasks have been completed
c. when process is using the CPU
d. none of the mentioned
3- Bringing the program into memory (RAM) and giving a PCB is called __________.
a. Process execution c. Process creation
b. Process ready d. Process initialization
4- The state of a process is defined by __________
a. the final activity of the process
b. the activity just executed by the process
c. the activity to next be executed by the process
d. the current activity of the process
5- Which of the following is not the state of a process?
a. New b. Old c. Waiting d. Running
6- The entry of all the PCBs of the current processes is in __________
a. Process Register c. Program Counter
b. Process Table d. Process Unit
7- What is the objective of multiprogramming?
a. Have a process running at all time
b. Have multiple programs waiting in a queue ready to run
c. To increase CPU utilization
d. None of the mentioned
8- Which of the following are the states of a five-state process model?
i) Running ii) Ready iii) New iv) Exit v) Destroy

a. a. i, ii, iii and v only c. i, ii, iv and v only


b. i, ii, iii, and iv only d. i, ii, iii, iv and v
9- The typical elements of process image are …………………
i) User data ii) System Data iii) User program iv) System stack

a. i, iii and iv only c. i, ii, and iv only


b. ii, iii, and iv only d. i, ii, iii, and iv
10- Which of the following information not included in memory table?
a. The allocation of main memory to process.
b. The allocation of secondary memory to process
c. Any information needed to manage virtual memory
d. Any information about the existence of file
11- The different types of tables maintained by the operating system are ………….
a. memory, logical, I/O file c. memory, I/O, file, physical
b. memory, I/O, file, process d. memory, logical, I/O, physical
12- Pick the correct statement about process:
a. Process table and Process Control Block are different data structures maintained by OS to
manage a process.
b. Each entry in a process table can be considered logically as a Process Control Block.
c. Process table is maintained by OS while Process control block is maintained by process
itself.
d. D. None of these
13- When a process is released from the pool of execution is called
a. Deletion b. Updating c. Execution d. Exit
14- When a process is created but has not admitted is called
a. Updated Process c. New Process
b. Complete Process d. Control Process
15- Which of the following states of process in operating system is defined incorrectly?
a. New: The process is being created
b. Running: Instructions are being executed
c. Waiting: process is waiting to be assigned to a processor
d. Terminated: The process has finished execution

You might also like