Find Jobs
Hire Freelancers

Banker's Algorithm

$30-40 USD

Completed
Posted over 20 years ago

$30-40 USD

Paid on delivery
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: [login to view URL] initial assignment of the resources. [login to view URL] maximum number of resources needed for each process. [login to view URL] 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
Project ID: 3013816

About the project

6 proposals
Remote project
Active 20 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$32.30 USD in 2 days
5.0 (161 reviews)
6.0
6.0
6 freelancers are bidding on average $24 USD for this job
User Avatar
See private message.
$24.65 USD in 2 days
5.0 (16 reviews)
4.2
4.2
User Avatar
See private message.
$24.65 USD in 2 days
5.0 (17 reviews)
4.2
4.2
User Avatar
See private message.
$21.25 USD in 2 days
4.8 (7 reviews)
3.0
3.0
User Avatar
See private message.
$25.50 USD in 2 days
3.8 (4 reviews)
2.3
2.3
User Avatar
See private message.
$17 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
5.0
5
Member since Nov 1, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.