找回密碼
 註冊
搜索
熱搜: 活動 交友 discuz
查看: 3115|回覆: 3

[作業] 使用Windows mutex 與 semaphore 解決Sleeping-Barber問題

[複製鏈接]
發表於 2009-6-10 01:48:02 | 顯示全部樓層 |閲讀模式
遊客,如果您要查看本帖隱藏內容請回覆

輸出結果
Customer waits: seat = 2
Barber cutting: seat = 3
Customer waits: seat = 2
Barber cutting: seat = 3
Customer waits: seat = 2
Barber cutting: seat = 3
Customer waits: seat = 2
Barber cutting: seat = 3
Customer waits: seat = 2
Barber cutting: seat = 3
Customer waits: seat = 2
Barber cutting: seat = 3
發表於 2010-1-6 00:29:57 | 顯示全部樓層
謝謝 樓主 熱心的發文
回覆

使用道具 舉報

發表於 2010-1-8 23:11:21 | 顯示全部樓層
感謝大大的分享
回覆

使用道具 舉報

發表於 2010-1-8 23:15:38 | 顯示全部樓層
感謝大大的分享^^
goodjob
回覆

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Checking the Pageranks

Archiver|手機版|小黑屋|WEO

GMT+8, 2026-7-29 07:52 PM , Processed in 0.071075 second(s), 17 queries .

Powered by Discuz! X5.0 Licensed

© 2001-2026 Discuz! Team.

快速回復 返回頂部 返回列表