Skip to content
MCQtimes.com
GK
Pakistan Studies
Current Affairs
Islamic Studies
English
MCQtimes.com
Toggle Menu
OS Deadlocks
Home
/
Computer Science
/
Operating System
/
OS Deadlocks
Show/Hide Answers
OS Deadlocks
The two ways of aborting processes and eliminating deadlocks are ____________
Abort all deadlocked processes
Abort all processes
Abort one process at a time until the deadlock cycle is eliminated
All of the mentioned
Author:
rikazzz
Comment
OS Deadlocks
What is the drawback of banker’s algorithm?
in advance processes rarely know how much resource they will need
the number of processes changes as time progresses
resource once available can disappear
all of the mentioned
Author:
rikazzz
Comment
OS Deadlocks
A system is in the safe state if ____________
the system can allocate resources to each process in some order and still avoid a deadlock
there exist a safe sequence
all of the mentioned
none of the mentioned
Author:
rikazzz
Comment
OS Deadlocks
To ensure that the hold and wait condition never occurs in the system, it must be ensured that ____________
whenever a resource is requested by a process, it is not holding any other resources
each process must request and be allocated all its resources before it begins its execution
a process can request resources only when it has none
all of the mentioned
c – A process may request some resources and use them. Before it can can request any additional resources, however it must release all the resources that it is currently allocated.
Author:
rikazzz
Comment
OS Deadlocks
A system is in a safe state only if there exists a ____________
safe allocation
safe resource
safe sequence
all of the mentioned
Author:
rikazzz
Comment
OS Deadlocks
‘m’ processes share ‘n’ resources of the same type. The maximum need of each process doesn’t exceed ‘n’ and the sum of all their maximum needs is always less than m+n. In this setup, deadlock ____________
can never occur
may occur
has to occur
none of the mentioned
Author:
rikazzz
Comment
OS Deadlocks
If we preempt a resource from a process, the process cannot continue with its normal execution and it must be ____________
aborted
rolled back
terminated
queued
Author:
rikazzz
Comment
OS Deadlocks
To _______ to a safe state, the system needs to keep more information about the states of processes.
abort the process
roll back the process
queue the process
none of the mentioned
Author:
rikazzz
Comment
OS Deadlocks
What is a reusable resource?
that can be used by one process at a time and is not depleted by that use
that can be used by more than one process at a time
that can be shared between various threads
none of the mentioned
Author:
rikazzz
Comment
OS Deadlocks
To ensure no preemption, if a process is holding some resources and requests another resource that cannot be immediately allocated to it ____________
then the process waits for the resources be allocated to it
the process keeps sending requests until the resource is allocated to it
the process resumes execution without the resource being allocated to it
then all resources currently being held are preempted
Author:
rikazzz
Comment
Page navigation
1
2
3
…
6
Next Page
Next
Go to Page
Light
Dark
GK
Pakistan Studies
Current Affairs
Islamic Studies
English