Skip to content

The Banker algorithm, sometimes referred to as the detection algorithm, is a resource allocation and deadlock avoidance

License

Notifications You must be signed in to change notification settings

maateusx/BankerAlgorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Banker's Algorithm

Instructions For compile run:

$ gcc -pthread -o main main.c processos.c sistema.c

For execute:

$ ./main -n 2 -a 5 7 9
$ ./main -n 3 -a 2 3 5

Algoritmo do Banqueiro

Instruções

Para compilar o programa:

$ gcc -pthread -o main main.c processos.c sistema.c

Para Executar é esperado uma entrada do tipo:

    $ ./main -n 2 -a 5 7 9
    $ ./main -n 3 -a 2 3 5

Onde no segundo caso, 3 é o número de threads que iram ser criadas e os números em sequencias, os recursos disponiveis.

Authors

About

The Banker algorithm, sometimes referred to as the detection algorithm, is a resource allocation and deadlock avoidance

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published