Implementation of Sleeping Barber (Thread)
Please help in performing the task.
Thank you !
A hairdresser employs one hairdresser, who has 1 seat to cut and n seat to wait for customers.
Customers come to the hairdresser through random intervals of time.
When there are no clients, the hairdresser is sleeping in a chair.
When the client comes, he awakens the hairdresser and starts the cutting.
If a hairdresser cuts someone, then the client sits in one of the free chairs.
If all the chairs are busy, the customer goes away.
When a hairdresser is released, he begins to cut the client who is most waiting or sleeping if there are no customers in the row.
The time of cutting is a random size.
Simulate this situation by avoiding the occurrence of situations of deedlock and hunger. The results are delivered to the console.
The result should be displayed as on the screen below:
Client's review of cooperation with Artem Shuryhin
Implementation of Sleeping Barber (Thread)The work is performed in the time and according to the task
I recommend cooperation
Freelancer's review of cooperation with Yevgeny Chernyavsky
Implementation of Sleeping Barber (Thread)A great customer. Comprehensive TZ and code requirements. I will be glad for further cooperation. thank you.
-
5164 210 0 Good day . I can help you in fulfilling your task. How much time is there to perform?
Current freelance projects in the category C#
Comparative analysis of the effectiveness of custom software (v2.2-field) and reference software (Meshtastic v2.x)
22 USD
Comparative analysis of the effectiveness of custom software (v2.2-field) and reference software (Meshtastic v2.x) on the identical hardware platform (ESP32 + SX1268, 2W) based on the criteria of range, throughput, link stability, and power consumption. Conduct tests with… C & C++, C# ∙ 9 days 8 hours back ∙ 2 proposals |
Creation of a plugin for integration with the POS system Syrve, C#Develop a plugin for the Syrve POS system (on-premise), which is installed on the establishment's server. The plugin must: (1) transmit data to our server in real-time — orders, table statuses, payments, receipts; (2) receive commands from Reservble — booking confirmations,… C#, Web Programming ∙ 12 days 4 hours back ∙ 15 proposals |