Skip to content

FacuBarrios01/MitchellMerrittAlgorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RaymondsAlgorithm

Author: Facundo Agustin Rodriguez

Profile picture

Recomendation

I recomend using a .md previewer, In vscode you can use the integrated previewer with the key combination (Ctrl + Shft + V)

Dataset

First line must contain "Number of processes:" immediately followed by a integer value ex."Number of processes:7". Starting from the next line we describe our graph as a Adjacency Matrix. To mark the end of the adjency matrix we will introduce a line with at lest two consecutive dashes. ie. "--". Afther describing the initial state of the graph, we will introduce new edges to our graph representing dependencies. We will add them with the following format: $DEPENDING_PROCESS - $BLOCKER_PROCESS The first value must be the depending process id, followed by a '-' and the id of the blocker process. Ej.: 2 - 3 Ex. "Process 2 is waiting for a resource blocked by process 3". Process id MUST NOT exceed the value of the number of processes. See example dataset in the documentation.

Code coments

To demonstrate the functioning of this algorithm we will provide the program with a initial system state represented by a adjency graph. After defining out initial state we will introduce new dependencies to our system and evaluate is those changes generate a deadlock. Dataset1 will indoruce new dependencies that will not generate a deadlock. Meanwhile Dataset 2 will introduce changes that are sopoused to generate a deadlock.

For a better understanding of the code I recomend start reviewing it starting from the main method inside the MitchellMerritt.java file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages