Skip to content

A simple program that checks if a given allocation and request matrix will result in a deadlock, and if the deadlock can be recovered through the use of preemption

Notifications You must be signed in to change notification settings

jbarish/Deadlock-Detection

Repository files navigation

This program will figure out if there is a deadlock, given:
A Request Matrix
An Allocation Matrix
An Available Vector

If there is a deadlock, it will try to resolve the deadlock using preemption.

The program is run with the following command:

#!c

       > ./deadlock allocation_matrix_file request_matrix_file "Space_separated_Available_Vector"

Sample command to run program:

#!c

       > ./deadlock allocation.txt request.txt "0 1 0 2 1"

The program can also be run by typing. This has numerous built in tests that showcase the programs features

#!c

       > make run

About

A simple program that checks if a given allocation and request matrix will result in a deadlock, and if the deadlock can be recovered through the use of preemption

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published