Home > OS >  "System of resources is greater than the sum of all process application resources, then the sys
"System of resources is greater than the sum of all process application resources, then the sys

Time:11-19

"System of resources is greater than the sum of all process application resources, then the system will not deadlock"
Answer said this sentence is wrong, you should also consider the order of the process to promote, but I think no matter in what order, since resources abundant, why deadlock?
So this sentence is right

CodePudding user response:

Don't understand, suggested to make good use of the search engine,

1, the competition to be preempted resources

P1 has opened the F1, trying to open the F2, p2 already open F2, want to go to open the F1, but F1 and F2 can be preempted, this is the deadlock,

2, the competition can consume resources cause deadlock

Interprocess communication, if the order is undeserved, can produce a deadlock, such as p1 message m1 to p2, p1 to receive the news of the p3 m3, p2 receive p1 m1, m2 to p3, p3, by analogy, if the process is start then can complete communication of information, but if it is to receive information can produce deadlocks,

3, improper process advance order

Process in the process of running, the order of the request and release resources, also can lead to deadlock
  • Related