•Computer have a limited resources then OS must well allocate all resources and have the method to manage and support all programs in the system.
•Especially, OS which supporting the multi tasks and multi users must avoiding of scramble resources (for example CPU, memory, I/O devices).
•Deadlocks is a situation in which two computer programs sharing the same resource are preventing each other from accessing resource. This is the reason why program stop running.