Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Bankers Algorithm Please Help

hello, i need some major help. i need to write the bankers algorithm in java by friday. does any one have the source code for this algorithm. i have searched the net so much and have found nothing useful. i need the program to implement the bankers algorthm and it needs to read in allocation matrix, resource vector and a claim matrix. it should compute available vector. assume 4 processors and 4 resources. should read 3 numbers which are(in order) process number, resource number, and number of resources it is requesting. then determine if request results in safe or unsafe state. thank you very much for your help and time.
[638 byte] By [scottybh] at [2007-11-11 8:07:44]
# 1 Re: Bankers Algorithm Please Help
I dont think you looked very hard. The first hit in a google search of the words 'banking algorithm java' turned up this:

http://www.cs.ucf.edu/~nmotgi/java/index.html

Kind regards,
Noel
noelob at 2007-11-11 22:36:18 >