Riders come to a bus stop and wait for a bus. When the bus arrives, all the waiting riders invoke boardBus, but anyone who arrives while the bus is boarding has to wait for the next bus.
The capacity of the bus is 50 people,if there are more than 50 people waiting, some will have to wait for the next bus. When all the waiting riders have boarded, the bus can invoke depart.
If the bus arrives when there are no riders, it should depart immediately.
https://sinceeverybodyhasablog.wordpress.com/2014/09/06/senate-bus-problem/
Projekt 2 do předmětu Operační Systémy - Synchronizace procesů
-
Notifications
You must be signed in to change notification settings - Fork 0
martasvlach/IOS-projekt2
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Projekt 2 do předmětu Operační Systémy
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published