Implementation of Sleeping Barber (Thread)
8 USDPlease 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:
Добрый день!
Просьба помочь в выполнении задания.
Спасибо!
В парикмахерской работает один парикмахер, у которого есть 1 кресло для стрижки и n кресел для ожидания клиентов.
Клиенты приходят к парикмахеру через случайные промежутки времени.
Когда клиентов нет, парикмахер спит в кресле.
Когда приходит клиент, он пробуждает парикмахера и начинается стрижка.
Если парикмахер стрижет кого-то, тогда клиент садится в одно из свободных кресел.
Если все кресла заняты, клиент уходит.
Когда парикмахер освобождается, он начинает стричь клиента, который больше всех ждет или засыпает, если в очереди нет клиентов.
Время стрижки является случайной величиной.
Смоделировать данную ситуацию избежав возникновения ситуаций дедлоков и голодовки. Результаты работы вывести на консоль.
Результат должен выводится как на скрине ниже:
Client's feedback on 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 feedback on 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.
-
4420 181 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#
Write a program in C# using a database
13 USD
A program needs to be written in the C# programming language with database connection (My Sql), on the topic of designing and developing the "Workday Planning" database. Overall, part of the program already exists, but it is necessary to create a database and connect it to… C#, Databases ∙ 11 proposals |
Smart contract for token airdrop
637 USD
Need to create a smart contract for token giveaways, which will then be integrated into a Telegram bot. About the giveaway: - A person transfers crypto (USDT or other cryptocurrency...) to a specific wallet address. - The smart contract automatically sends tokens or NFTs to the… Blockchain, C# ∙ 4 proposals |
C# and go developer under refactoring list of services |
Software application “College Graduate Guide” (C# Windows Form)Create the GUI program "Visual Studio C#, Windows Forms" which provides: List of graduates; Adding and updating information; use of different filters and criteria to find specific graduates according to the professional direction, the place of work, the year of release; The… C#, Microsoft .NET ∙ 18 proposals |
by SarafanIn search of a backend developer who will take our project for improvement. We have tg bots and mobile apps. Accordingly, there are groups of users with different levels of access and personal offices. Catalogue of goods and authorization through telegram. Payments are made on… C#, Microsoft .NET ∙ 6 proposals |