Bankers Algorithm in Java


An implementation of the Banker's Algorithm for a single "currency" or resource type has been given. A banker has a capital expressed in florins. He accepts any number of borrowers, each of whom has a loan, which may be decreased or increased in units of a florin up to a maximum pre-stated need. Each borrower guarantees that he will eventually return his complete loan. Starting from a safe state, i.e. one where all borrowers can complete their transactions, the banker must decide, when borrower b asks for a florin, whether b will be able to complete his transactions. If so, the situation is safe. Write a Java method to handle multiple currencies: boolean safe(int b, int c) where b  0..B-1 denotes the borrower and c  0..C-1 denotes the currency.

## Deliverables

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

## Platform

Coded using JPad

## Deadline information

Need to have the code within about an hour!

Skills: Engineering, Java, MySQL, PHP, Software Architecture, Software Testing

See more: the algorithm is, program algorithm, an algorithm is a, algorithm's, algorithm is, algorithm in c, algorithm b, bankers algorithm program java, java algorithm, Implementation of algorithm, florin, c++ algorithm, algorithm, algorithm java, algorithm for maximum, algorithm c, currency source code, bankers algorithm code java, code banker algorithm, algorithm work, banker algorithm program, java code implementation, banker algorithm, algorithm code java, deliverables java

Project ID: #2850173

2 freelancers are bidding on average $51 for this job


See private message.

$17 USD in 14 days
(2 Reviews)

See private message.

$85 USD in 14 days
(0 Reviews)