Find Jobs
Hire Freelancers

Banker's Algorithm

$30-40 USD

已完成
已发布超过 20 年前

$30-40 USD

货到付款
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
项目 ID: 3013816

关于此项目

6提案
远程项目
活跃20 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
See private message.
$32.30 USD 在2天之内
5.0 (161条评论)
6.0
6.0
6威客以平均价$24 USD来参与此工作竞价
用户头像
See private message.
$24.65 USD 在2天之内
5.0 (16条评论)
4.2
4.2
用户头像
See private message.
$24.65 USD 在2天之内
5.0 (17条评论)
4.2
4.2
用户头像
See private message.
$21.25 USD 在2天之内
4.8 (7条评论)
3.0
3.0
用户头像
See private message.
$25.50 USD 在2天之内
3.8 (4条评论)
2.3
2.3
用户头像
See private message.
$17 USD 在2天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
United States
5.0
5
会员自11月 1, 2003起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。