Deck 10: Process Scheduling and Synchronization in Multi-Programming Environment

Full screen (f)
exit full mode
Question
A single thread of control allows the process to perform___________      

A)only one task at a time
B)multiple tasks at a time
C)only two tasks at a time
D)all of the mentioned
Use Space or
up arrow
down arrow
to flip the card.
Question
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
Question
Which of the following do not belong to queues for processes?

A)job queue
B)pcb queue
C)device queue
D)ready queue
Question
When the process issues an I/O request

A)it is placed in an i/o queue
B)it is placed in a waiting queue
C)it is placed in the ready queue
D)it is placed in the job queue
Question
What will happen when a process terminates?

A)it is removed from all queues
B)it is removed from all, but the job queue
C)its process control block is de-allocated
D)its process control block is never de- allocated
Question
What is a long-term scheduler?

A)it selects processes which have to be brought into the ready queue
B)it selects processes which have to be executed next and allocates cpu
C)it selects processes which heave to remove from memory by swapping
D)none of the mentioned
Question
If all processes I/O bound, the ready queue will almost always be___________  and the Short term Scheduler will have a___________  to do.

A)full, little
B)full, lot
C)empty, little
D)empty, lot
Question
What is a medium-term scheduler?

A)it selects which process has to be brought into the ready queue
B)it selects which process has to be executed next and allocates cpu
C)it selects which process to remove from memory by swapping
D)none of the mentioned
Question
What is a short-term scheduler?___________      

A)it selects which process has to be brought into the ready queue
B)it selects which process has to be executed next and allocates cpu
C)it selects which process to remove from memory by swapping
D)none of the mentioned
Question
The primary distinction between the short term scheduler and the long term scheduler is

A)the length of their queues
B)the type of processes they schedule
C)the frequency of their execution
D)none of the mentioned
Question
In a multiprogramming environment

A)the processor executes more than one process at a time
B)the programs are developed by more than one person
C)more than one process resides in the memory
D)a single user can execute many programs at the same time
Question
The context of a process in the PCB of a process does not contain___________      

A)the value of the cpu registers
B)the process state
C)memory-management information
D)context switch time
Question
Which of the following need not necessarily be saved on a context switch between processes?

A)general purpose registers
B)translation lookaside buffer
C)program counter
D)all of the mentioned
Question
Which of the following does not interrupt a running process?

A)a device
B)timer
C)scheduler process
D)power failure
Question
Which process can be affected by other processes executing in the system?

A)cooperating process
B)child process
C)parent process
D)init process
Question
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
Question
If a process is executing in its critical section, then no other processes can be executing in their critical section. This condition is called?

A)mutual exclusion
B)critical exclusion
C)synchronous exclusion
D)asynchronous exclusion
Question
Which one of the following is a synchronization tool?

A)thread
B)pipe
C)semaphore
D)socket
Question
A semaphore is a shared integer variable

A)that can not drop below zero
B)that can not be more than zero
C)that can not drop below one
D)that can not be more than one
Question
Mutual exclusion can be provided by the

A)mutex locks
B)binary semaphores
C)both mutex locks and binary semaphores
D)none of the mentioned
Question
When high priority task is indirectly preempted by medium priority task effectively inverting the relative priority of the two tasks, the scenario is called

A)priority inversion
B)priority removal
C)priority exchange
D)priority modification
Question
Process synchronization can be done on

A)hardware level
B)software level
C)both hardware and software level
D)none of the mentioned
Question
A monitor is a module that encapsulates

A)shared data structures
B)procedures that operate on shared data structure
C)synchronization between concurrent procedure invocation
D)all of the mentioned
Question
To enable a process to wait within the monitor___________      

A)a condition variable must be declared as condition
B)condition variables must be used as boolean objects
C)semaphore must be used
D)all of the mentioned
Question
Restricting the child process to a subset of the parent's resources prevents any process from___________      

A)overloading the system by using a lot of secondary storage
B)under-loading the system by very less cpu utilization
C)overloading the system by creating a lot of sub-processes
D)crashing the system by utilizing multiple resources
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 10: Process Scheduling and Synchronization in Multi-Programming Environment
1
A single thread of control allows the process to perform___________      

A)only one task at a time
B)multiple tasks at a time
C)only two tasks at a time
D)all of the mentioned
only one task at a time
2
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
to increase cpu utilization
3
Which of the following do not belong to queues for processes?

A)job queue
B)pcb queue
C)device queue
D)ready queue
pcb queue
4
When the process issues an I/O request

A)it is placed in an i/o queue
B)it is placed in a waiting queue
C)it is placed in the ready queue
D)it is placed in the job queue
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
What will happen when a process terminates?

A)it is removed from all queues
B)it is removed from all, but the job queue
C)its process control block is de-allocated
D)its process control block is never de- allocated
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
What is a long-term scheduler?

A)it selects processes which have to be brought into the ready queue
B)it selects processes which have to be executed next and allocates cpu
C)it selects processes which heave to remove from memory by swapping
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
If all processes I/O bound, the ready queue will almost always be___________  and the Short term Scheduler will have a___________  to do.

A)full, little
B)full, lot
C)empty, little
D)empty, lot
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
What is a medium-term scheduler?

A)it selects which process has to be brought into the ready queue
B)it selects which process has to be executed next and allocates cpu
C)it selects which process to remove from memory by swapping
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
What is a short-term scheduler?___________      

A)it selects which process has to be brought into the ready queue
B)it selects which process has to be executed next and allocates cpu
C)it selects which process to remove from memory by swapping
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
The primary distinction between the short term scheduler and the long term scheduler is

A)the length of their queues
B)the type of processes they schedule
C)the frequency of their execution
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
In a multiprogramming environment

A)the processor executes more than one process at a time
B)the programs are developed by more than one person
C)more than one process resides in the memory
D)a single user can execute many programs at the same time
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
The context of a process in the PCB of a process does not contain___________      

A)the value of the cpu registers
B)the process state
C)memory-management information
D)context switch time
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
Which of the following need not necessarily be saved on a context switch between processes?

A)general purpose registers
B)translation lookaside buffer
C)program counter
D)all of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
Which of the following does not interrupt a running process?

A)a device
B)timer
C)scheduler process
D)power failure
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
Which process can be affected by other processes executing in the system?

A)cooperating process
B)child process
C)parent process
D)init process
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
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
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
If a process is executing in its critical section, then no other processes can be executing in their critical section. This condition is called?

A)mutual exclusion
B)critical exclusion
C)synchronous exclusion
D)asynchronous exclusion
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
Which one of the following is a synchronization tool?

A)thread
B)pipe
C)semaphore
D)socket
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
A semaphore is a shared integer variable

A)that can not drop below zero
B)that can not be more than zero
C)that can not drop below one
D)that can not be more than one
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
Mutual exclusion can be provided by the

A)mutex locks
B)binary semaphores
C)both mutex locks and binary semaphores
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
When high priority task is indirectly preempted by medium priority task effectively inverting the relative priority of the two tasks, the scenario is called

A)priority inversion
B)priority removal
C)priority exchange
D)priority modification
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
Process synchronization can be done on

A)hardware level
B)software level
C)both hardware and software level
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
A monitor is a module that encapsulates

A)shared data structures
B)procedures that operate on shared data structure
C)synchronization between concurrent procedure invocation
D)all of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
To enable a process to wait within the monitor___________      

A)a condition variable must be declared as condition
B)condition variables must be used as boolean objects
C)semaphore must be used
D)all of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
Restricting the child process to a subset of the parent's resources prevents any process from___________      

A)overloading the system by using a lot of secondary storage
B)under-loading the system by very less cpu utilization
C)overloading the system by creating a lot of sub-processes
D)crashing the system by utilizing multiple resources
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.