Find Jobs
Hire Freelancers

Banker's algorith

₹600-1500 INR

Mbyllur
Postuar over 6 years ago

₹600-1500 INR

Paguhet në dorëzim
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.
ID e Projektit: 15669038

Rreth projektit

4 propozime
Projekt në distancë
Aktive 6 yrs ago

Po kërkoni të fitoni para?

Përfitimet e ofertës për Freelancer

Vendosni buxhetin dhe afatin tuaj
Paguhuni për punën tuaj
Përshkruani propozimin tuaj
Është falas të regjistrohesh dhe të bësh oferta për punë
4 freelancers are bidding on average ₹1 350 INR for this job
Avatari i Përdoruesit
A proposal has not yet been provided
₹1 550 INR në 1 ditë
5,0 (3 përshtypje)
2,5
2,5
Avatari i Përdoruesit
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 në 2 ditë
0,0 (0 përshtypje)
0,0
0,0
Avatari i Përdoruesit
A proposal has not yet been provided
₹1 300 INR në 4 ditë
0,0 (0 përshtypje)
0,0
0,0

Rreth klientit

Flamuri i INDIA
Jalandhar, India
0,0
0
Anëtar që nga sht 8, 2015

Verifikimi i klientit

Faleminderit! Ne ju kemi dërguar me email një lidhje për të kërkuar kredinë tuaj falas.
Ndodhi një gabim gjatë dërgimit të email-it tuaj. Ju lutemi provoni përsëri.
Përdorues të regjistruar Punë të postuara
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Po ngarkohet shikimi paraprak
Leja u dha për Geolocation.
Seanca e hyrjes ka skaduar dhe ke dalë. Hyr sërish.