0% found this document useful (0 votes)
18 views8 pages

Unit 3 Os

Uploaded by

umabharathi.s
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views8 pages

Unit 3 Os

Uploaded by

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

UNIT 3

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

A . mutual exclusion

B . a process may hold allocated resources while awaiting assignment of other resources

C . no resource can be forcibly removed from a process holding it

D . all of the mentioned

Answer

2. A system is in the safe state if

A . the system can allocate resources to each process in some order and still avoid a deadlock

B . there exist a safe sequence

C . both A and B

D . none of the mentioned

Answer

3. The circular wait condition can be prevented by

A . defining a linear ordering of resource types

B . using thread

C . using pipes

D . all of the mentioned

Answer

4. Which one of the following is the deadlock avoidance algorithm?

A . banker’s algorithm
B . round-robin algorithm

C . elevator algorithm

D . karn’s algorithm

Answer

5. What is the drawback of banker’s algorithm?

A . in advance processes rarely know that how much resource they will need

B . the number of processes changes as time progresses

C . resource once available can disappear

D . all of the mentioned

Answer

6. For a deadlock to arise, which of the following conditions must hold


simultaneously ? ( choose all that apply )

A . Mutual exclusion

B . Hold and wait

C . No preemption

D . All the Above

Answer

7. For Mutual exclusion to prevail in the system :

A . at least one resource must be held in a non sharable mode

B . the processor must be a uniprocessor rather than a multiprocessor

C . there must be at least one resource in a sharable mode


D . All of these

Answer

8. For a Hold and wait condition to prevail :

A . A process must be not be holding a resource, but waiting for one to be freed, and then request
to acquire it

B . A process must be holding at least one resource and waiting to acquire additional resources
that are being held by other processes

C . A process must hold at least one resource and not be waiting to acquire additional resources

D . None of these

Answer

9. For non sharable resources like a printer, mutual exclusion :

A . must exist

B . must not exist

C . may exist

D . None of these

Answer

10. A deadlock avoidance algorithm dynamically examines the __________, to


ensure that a circular wait condition can never exist.

A . resource allocation state

B . system storage state

C . operating system

D . resources
Answer

11. A state is safe, if :

A . the system does not crash due to deadlock occurrence

B . the system can allocate resources to each process in some order and still avoid a deadlock

C . the state keeps the system protected and safe

D . All of these

Answer

12. If no cycle exists in the resource allocation graph :

A . then the system will not be in a safe state

B . then the system will be in a safe state

C . either A or B

D . None of these

Answer

13. The content of the matrix Need is :

A . Allocation – Available

B . Max – Available

C . Max – Allocation

D . Allocation – Max

Answer

14. If deadlocks occur frequently, the detection algorithm must be invoked


________.
A . rarely

B . frequently

C . None of these

D . both A and B

Answer

15. A deadlock can be broken by : (choose all that apply)

A . abort one or more processes to break the circular wait

B . abort all the process in the system

C . preempt all resources from all processes

D . to preempt some resources from one or more of the deadlocked processes

Answer

16. If we preempt a resource from a process, the process cannot continue with
its normal execution and it must be :

A . aborted

B . rolled back

C . terminated

D . queued

Answer

17. If the resources are always preempted from the same process, __________
can occur.

A . deadlock

B . system crash
C . aging

D . starvation

Answer

18. A binary semaphore

A . has the values one or zero

B . is essential to binary

computers

C . is used only for synchronisation

D . is used only for mutual exclusion

Answer

19. Mutual exclusion can be provided by the

A . mutex locks

B . binary semaphores

C . both A and B

D . D.none of the mentioned

Answer

20. When two or more processes attempt to access the same resource a _________
occurs.

A . Critical section

B . Fight

C . Communication problem
D . Race condition

Answer

21. Which is true regarding pipes?

A . half duplex

B . full duplex

C . message boundaries are preserved

D . unordered data

Answer

22. Advantage of FIFO over pipe is

A . related processes can communicate

B . unrelated processes can communicate

C . all of the mentioned

D . none of the mentioned

Answer

23. What mkfifo( ) creats?

A . pipe

B . unnamed pipe

C . named pipe

D . msg queue

Answer
24. Which is Fastest IPC?

A . Message Queue

B . shared memory

C . Socket

D . All of the mentioned

Answer

You might also like