in Operating System
485 views
0 votes
0 votes
Which of the following  can cause deadlock

A) Files

B) Printer

C) Shared files

D) All of the above

How is D not the answer and B is
in Operating System
485 views

4 Comments

The only way you get a deadlock is that you have one or more processes waiting for it, but no processes releasing it . If you have one process holding it, then that process MUST release it.
1
1
How can you say B is the answer?

Two processes can not write on a file at the same time, so this has to be synchronized.
0
0
I have the same question to be honest
0
0

Please log in or register to answer this question.

Related questions