Reputation: 485
Is it guaranteed that by using FCFS scheduling, the 'system' will not be in deadlock?
Thanks in advance!
Upvotes: 1
Views: 829
Reputation: 80
The four conditions for a deadlock are:
Hence, FCFS does not guarantee that the system will not be in deadlock. If the four conditions are met, a deadlock will occur.
Upvotes: 2
Reputation: 1425
Deadlocks are caused by resource locking, not scheduling order. FCFS doesn’t guarantee that your threads will always grab resources in sequence, so the answer to your question is no.
Upvotes: 1