Banker's Algorithm

Nice opportunity to raise your **Coding Rating**!

Need a program in C/C++ that implements the Banker's Algorithm for a single resource.

What Program Should Do:

Randomly create a state of 4 processes: A,B,C,and D.

For each process A,B,C,D: randomly choose:

[url removed, login to view] initial assignment of the resources.

[url removed, login to view] maximum number of resources needed for each process.

[url removed, login to view] total number of resources available.

An example:

Holds Needs

A 4 2

B 2 5

C 3 6

D 1 2

total available:2

Note:Make sure initial state is safe.

Then randomly create 4 different sequences of requests by the process. An example of one request would be:

B requests 2 resources

C requests 1 resource

D requests 4 resources

A requests 1 resource.

For every request, the driver program should print out the new state and indicate if the state is safe.

If all of the resources are exhausted and the state is unsafe,

then print out that a deadlock has occurred and terminate.

The program should have 4 independent runs.

Code should be well-documented.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.

3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).

## Platform

Microsoft Visual C++ 6.0

Habilidades: ASP, Programação C, Java, Perl, PHP

Veja mais: what's an algorithm, what's algorithm, what is the algorithm, what is an algorithm, what is algorithm, what is a algorithm, what an algorithm, what algorithm, the algorithm is, program algorithm example, program algorithm, make algorithm, example of an algorithm, example of algorithm, example of a algorithm, example for algorithm, example algorithm, different algorithm, assignment out source, an example of an algorithm, an algorithm is a, algorithm software, algorithm's, algorithm is, algorithm explained

Acerca do Empregador:
( 5 comentários ) United States

ID do Projeto: #3013816

Concedido a:


See private message.

$32.3 USD em 2 dias
(161 Comentários)

6 freelancers estão ofertando em média $24 para esse trabalho


See private message.

$24.65 USD in 2 dias
(16 Comentários)

See private message.

$24.65 USD in 2 dias
(17 Comentários)

See private message.

$21.25 USD in 2 dias
(7 Comentários)

See private message.

$25.5 USD in 2 dias
(4 Comentários)

See private message.

$17 USD in 2 dias
(0 Comentários)