Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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

AltStyle によって変換されたページ (->オリジナル) /