Process-threads
Question 1 |
Fork is
the creation of a new job | |
the dispatching of a task | |
increasing the priority of a task | |
the creation of a new process |
Question 1 Explanation:
fork() creates a new process by duplicating the calling process, The new process, referred to as child, is an exact duplicate of the calling process, referred to as parent, except for the following :
The child has its own unique process ID, and this PID does not match the ID of any existing process group.
The child’s parent process ID is the same as the parent process ID.
The child does not inherit its parent’s memory locks and semaphore
adjustments.
The child does not inherit outstanding asynchronous I/O operations from its parent nor does it inherit any asynchronous I/O contexts from its parent.
The child has its own unique process ID, and this PID does not match the ID of any existing process group.
The child’s parent process ID is the same as the parent process ID.
The child does not inherit its parent’s memory locks and semaphore
adjustments.
The child does not inherit outstanding asynchronous I/O operations from its parent nor does it inherit any asynchronous I/O contexts from its parent.
Question 2 |
The primary purpose of an operating system is
To make most efficient use of the computer hardware | |
To allow people to use the computer | |
To keep systems programmers employed | |
To make computers easier to use |
Question 2 Explanation:
Explanation: An operating system has three main functions:
(1) manage the computer’s resources, such as the central processing unit, memory, and other input – output sources
(2) establish a user interface, and
(3) execute and provide services for applications software.
OS provides an interface between the user and the hardware and thus making the computer easy to use for the user but the primary function of OS is to manage the hardware in the most efficient way.
(1) manage the computer’s resources, such as the central processing unit, memory, and other input – output sources
(2) establish a user interface, and
(3) execute and provide services for applications software.
OS provides an interface between the user and the hardware and thus making the computer easy to use for the user but the primary function of OS is to manage the hardware in the most efficient way.
Question 3 |
Which is the correct definition of a valid process transition in an operating system?
Wake up: ready → running | |
Dispatch: ready → running | |
Block: ready → running | |
Timer runout: ready → running |
Question 3 Explanation:
From the below process state diagram, we can easily that the option (B) is correct.


Question 4 |
Special software to create a job queue is called a
Driver | |
Spooler | |
Interpreter | |
Linkage editor |
Question 4 Explanation:
Spooling is a specialized form of multi-programming for the purpose of copying data between different devices.
A dedicated program, the spooler, maintains an orderly sequence of jobs for the peripheral and feeds it data at its own rate
Conversely, for slow input peripherals, such as a card reader, a spooler can maintain a sequence of computational jobs waiting for data, starting each job when all of the relevant input is available
A dedicated program, the spooler, maintains an orderly sequence of jobs for the peripheral and feeds it data at its own rate
Conversely, for slow input peripherals, such as a card reader, a spooler can maintain a sequence of computational jobs waiting for data, starting each job when all of the relevant input is available
There are 4 questions to complete.
