Find Jobs
Hire Freelancers

implement a super simple "Dining Philosophers" problem

$10-30 USD

Closed
Posted over 3 years ago

$10-30 USD

Paid on delivery
create 5 "diners" that have to eat a bowl of rice with maybe 100 "units" of rice. Have them have a collection of 5 chopsticks and each diner must grab one chopstick on their left and one on their right in order to eat a unit of rice. Once they've eaten a unit of rice, they should sleep for 100ms before trying again. Have them print out which diner is eating when they eat and which diner grabs a chopstick when they grab one. Have them implement the solution first without handling deadlock and observe the deadlock - have them lock the right chopstick, wait 10ms then lock the left. Then have them Use the [login to view URL] method to wait for 100ms to get a lock on both of the chopsticks, if it doesn't get a lock on both chopsticks, it should sleep for 100ms and then try to get a lock on both again.
Project ID: 28392317

About the project

2 proposals
Remote project
Active 3 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
2 freelancers are bidding on average $38 USD for this job
User Avatar
Hi I am senior C# developer, i have checked the details and seem like i am able to do it, is it ok to deliver it as console application?
$45 USD in 2 days
5.0 (40 reviews)
5.7
5.7
User Avatar
Hi. This is easy to implement, let me help you, I have 6 years of C# development experience. I have done similar programs, if we cooperate, it will make us feel happy.
$30 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
colorado springs, United States
5.0
19
Payment method verified
Member since Dec 12, 2015

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.