ALL > Computer and Education > courses > university courses > undergraduate courses > Operating System > zstu-(2021-2022)-1 > online classroom excerse >
textbook p233 6.11 The sleeping-Barber Problem online classroom excercise-2 Version 0
👤 Author: by writer 2021-09-29 03:56:15 last modified by writer
excercise The sleeping-Barber Problem,    textbook p233 6.11 The sleeping-Barber Problem

A barbershop consists of a waiting room with n chairs and a barber room with one chair. If there are no customers to be served, the barber goes to sleep. If a coustomer enters the barershop and all chairs are occuipied, then the customer leaves the shop. If the barber is busy but chairs are availabe, then the custumer sits in one of the free chairs. If the barber is asleep, the customer wakes up the barber. Write a program to coorinate the barber and the customers.

Please login to reply. Login

1615379639qqcom • 2021-09-29 20:08:10
<a href="http://www.yvsou.com/wp-content/uploads/sites/30/2021/09/python_sleeping-baber.txt">python_sleeping-baber</a> <a href="http://www.yvsou.com/wp-content/uploads/sites/30/2021/09/截屏2021-09-29-下午8.16.51.png"><img class="alignnone size-medium wp-image-9644" src="http://www.yvsou.com/wp-content/uploads/sites/30/2021/09/截屏2021-09-29-下午8.16.51-300x235.png" alt="" width="300" height="235" /></a> <a href="http://www.yvsou.com/wp-content/uploads/sites/30/2021/09/截屏2021-09-29-下午8.17.00.png"><img class="alignnone size-medium wp-image-9645" src="http://www.yvsou.com/wp-content/uploads/sites/30/2021/09/截屏2021-09-29-下午8.17.00-300x266.png" alt="" width="300" height="266" /></a> PostVer 0

Please login to reply. Login

nintendolinkfoxmailcom • 2021-12-29 23:41:48
<a href="http://www.yvsou.com/wp-content/uploads/sites/30/2021/12/Screen-Shot-2021-12-29-at-23.51.33.png"><img class="alignnone size-large wp-image-9800" src="http://www.yvsou.com/wp-content/uploads/sites/30/2021/12/Screen-Shot-2021-12-29-at-23.51.33-941x1024.png" alt="" width="620" height="675" /></a> PostVer 0

Please login to reply. Login

rootfreanjacn • 2021-12-30 04:47:13
<a href="http://www.yvsou.com/wp-content/uploads/sites/30/2021/12/截屏2021-12-30-上午4.55.35.png"><img class="alignnone size-medium wp-image-9805" src="http://www.yvsou.com/wp-content/uploads/sites/30/2021/12/截屏2021-12-30-上午4.55.35-300x195.png" alt="" width="300" height="195" /></a> PostVer 0

Please login to reply. Login

Reversion History

Loading...
No reversions found.