Find Jobs
Hire Freelancers

Debug small C Program

$30-250 USD

In Progress
Posted about 11 years ago

$30-250 USD

Paid on delivery
1. First compile and execute the distributed program. Note that it deadlocks. In order to make running it less frustrating, I made it terminate with the message ``No runnable threads." 2. Modify the program by changing the order of calls to use two-phase locking and produce a version of the program with modified threads, which doesn't deadlock. Note that it never terminates, because each thread sits in a rather pointless infinite loop. 3. Now go back and solve the deadlock problem by modifying the resource management package, instead of the thread code: Check for deadlock when a thread waits for a semaphore, and if granting it would cause deadlock, make the thread wait until things are safe. (In order to check, you'll need to define some new data structures, and perhaps insert some additional code into each thread to manage them.)
Project ID: 4534402

About the project

13 proposals
Remote project
Active 11 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

About the client

Flag of UNITED STATES
Denville, United States
5.0
4
Member since Apr 17, 2013

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.