Find Jobs
Hire Freelancers

Banker's algorith

₹600-1500 INR

Imefungwa
Imechapishwa over 6 years ago

₹600-1500 INR

Kulipwa wakati wa kufikishwa
In this assignment, you implement a multi-threaded program to simulate the Banker's Algorithm (pseudo code in Textbook). There are 10 threads in the system with a maximum possible requests for a common resource. Each thread keeps requests some random number of resources (between 1 to maximum) from the system. A thread sleeps some time between requests to simulate the execution of tasks after acquiring all the necessary resources. Use Banker's Algorithm to make sure the system is always in safe state. Parameters: MAX units: the total number of unit is 8. MAX claims: each thread can request up to 6 units of the resource. Report: you should write a 2-3 page report that includes The basic structure of your program Some curves for the performance of the program. For example, relationship between throughput (#jobs completed) and sleeping time, relationship between throughput (#jobs completed) over time, etc. Justification of your results. Submission: Should zip everything into one file, including source code, report, and README README should detail operating system, version of C++ or thread library, comand to compile/run your program. BONUS: 10% for including 2 resources in the system or 15% for including 5 resources in the system 10% for implementing Lock Ordering with 5 resources.
Kitambulisho cha mradi: 15669038

Kuhusu mradi

4 mapendekezo
Mradi wa mbali
Inatumika 6 yrs ago

Unatafuta kupata pesa?

Faida za kutoa zabuni kwenye Freelancer

Weka bajeti yako na muda uliopangwa
Pata malipo kwa kazi yako
Eleza pendekezo lako
Ni bure kujiandikisha na kutoa zabuni kwa kazi
4 wafanyakazi huru wana zabuni kwa wastani ₹1,350 INR kwa kazi hii
Picha ya Mtumiaji
A proposal has not yet been provided
₹1,550 INR ndani ya siku 1
5.0 (3 hakiki)
2.5
2.5
Picha ya Mtumiaji
I remember performing the bankers algorithm by hand in university. I never got to program it but would enjoy the chance to. I will write a generic program that can scale to an arbitrary number of resources and threads. It will be able to read in the resource configuration from a file and record the results it produces.
₹1,250 INR ndani ya siku 2
0.0 (0 hakiki)
0.0
0.0
Picha ya Mtumiaji
A proposal has not yet been provided
₹1,300 INR ndani ya siku 4
0.0 (0 hakiki)
0.0
0.0

Kuhusu mteja

Bedera ya INDIA
Jalandhar, India
0.0
0
Mwanachama tangu Sep 8, 2015

Uthibitishaji wa Mteja

Kazi nyingine kutoka kwa mteja huyu

C program of the below problem
₹600-1500 INR
Asante! Tumekutumia kiungo cha kudai mkopo wako bila malipo kwa barua pepe.
Hitilafu fulani imetokea wakati wa kutuma barua pepe yako. Tafadhali jaribu tena.
Watumiaji Waliosajiliwa Jumla ya Kazi Zilizochapishwa
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Onyesho la kukagua linapakia
Ruhusa imetolewa kwa Uwekaji wa Kijiografia.
Muda wako wa kuingia umeisha na umetoka nje. Tafadhali ingia tena.