Operating System Mcqs

Page No. 19

Which one of the following is the deadlock avoidance algorithm?


abanker’s algorithm

✓


bround-robin algorithm

✖


celevator algorithm

✖


dkarn’s algorithm

✖


View Answer banker’s algorithm

The circular wait condition can be prevented by ____________


adefining a linear ordering of resource types

✓


busing thread

✖


cusing pipes

✖


dall of the mentioned

✖



A system is in the safe state if ____________


athe system can allocate resources to each process in some order and still avoid a deadlock

✓


bthere exist a safe sequence

✖


call of the mentioned

✖


dnone of the mentioned

✖



Which of the following condition is required for a deadlock to be possible?


amutual exclusion

✖


ba process may hold allocated resources while awaiting assignment of other resources

✖


cno resource can be forcibly removed from a process holding it

✖


dall of the mentioned

✓


View Answer all of the mentioned

What is a reusable resource?


athat can be used by one process at a time and is not depleted by that use

✓


bthat can be used by more than one process at a time

✖


cthat can be shared between various threads

✖


dnone of the mentioned

✖



One way to ensure that the circular wait condition never holds is to ____________


aimpose a total ordering of all resource types and to determine whether one precedes another in the ordering

✓


bto never let a process acquire resources that are held by other processes

✖


cto let a process wait for only one resource at a time

✖


dall of the mentioned

✖



To ensure no preemption, if a process is holding some resources and requests another resource that cannot be immediately allocated to it ____________


athen the process waits for the resources be allocated to it

✖


bthe process keeps sending requests until the resource is allocated to it

✖


cthe process resumes execution without the resource being allocated to it

✖


dthen all resources currently being held are preempted

✓



The disadvantage of a process being allocated all its resources before beginning its execution is ____________


aLow CPU utilization

✖


bLow resource utilization

✓


cVery high resource utilization

✖


dNone of the mentioned

✖



To ensure that the hold and wait condition never occurs in the system, it must be ensured that ____________


awhenever a resource is requested by a process, it is not holding any other resources

✖


beach process must request and be allocated all its resources before it begins its execution

✖


ca process can request resources only when it has none

✖


dall of the mentioned

✓


View Answer all of the mentioned

For sharable resources, mutual exclusion ____________


ais required

✖


bis not required

✓


cmay be or may not be required

✖


dnone of the mentioned

✖


View Answer is not required

Goto Page No.

Page 19 of 108

Alphabetical MCQs Categories
—

Here below You find all kind of categories of MCQs in alphabetical order.


"Comprehensive Collection of MCQs: Alphabetically Organized by Subject"
—

"Discover an extensive collection of multiple-choice questions (MCQs) neatly categorized by subject from A to Z. This resource is designed for anyone eager to explore various topics in a straightforward and organized manner. Whether you're a student preparing for exams, an educator seeking supplementary materials, or simply curious about different subjects, this compilation offers a convenient way to learn and assess your knowledge. With questions arranged alphabetically, navigation is effortless, allowing you to delve into subjects of interest at your own pace. Engage, learn, and expand your understanding with this accessible and comprehensive repository of MCQs!"


BolPakistan

bolpakistan.com.pk includes Job Mcqs and Pak Mcqs is the Top Largest Mcqs Forum in World, in which you can read Mcqs of All Subjects, PPSC test preparation, FPSC, NTS and PPSC PAST PAPERS, PPSC PAST MCQS. A Collection of Repeated MCQs for JOBs seekers.

Copyright © 2024, Designed & Developed by BolPakistan