c++ Threads Homework
$10-30 USD
Pagado a la entrega
The question is on the document on page 17
Implement the Sushi Bar problem in explained with pseudo code in practice session 7.
1) You can implement either alternative solution (slide 20 or 22).
2) Do not implement the solution attempt in slide 19.
3) Create n threads where n is provided by the user.
4) Each thread should print the following messages when appropriate:
Thread i: j seats are empty so I sit.
Thread i: j seat(s) are empty but I wait. There are other k people waiting.
Thread i: I sit on the last seat. We are dining together now.
Thread i: I leave so j seats are empty now.
5) "// eat sushi" line in the pseudo code should be replaced with usleep(d) where d is a random integer between 100 and 1000. It is different for each thread and in each run.
6) Also add a random delay (usleep) to the beginning of the thread function. Delay duration should be between 0 and 1000000.
Good luck!
Nº del proyecto: #8951221
Sobre el proyecto
Adjudicado a:
This is my offer.......................................................................................................................................................................................
14 freelancers están ofertando un promedio de $28 por este trabajo
I am expert in c,c++ and i have excellent skills in threads and there manipulation so I know how can we synchronize them. Thank you.
I have prior experience of linux, C++ and Posix API. I can provide well documented coded with clear variable names so its easy to understand.
Hi, I'm experienced C/C++ developer working curently in Mphasis Wyde as Delivery module leader. I done many projects with liux threads and C++11 threads. I will provide solution within 24 h
Hello here, This task would be done during a day. Please contact me if it makes you interested. Thank you,
I am an expert c++ programmer working in MNC for 12 years . I have developed many C++ application earlier.