- The doctors are represented by a thread_pool
- The patients are created in different threads after a random delay and are submited to the thread pool taskQueue to be executed
- Each patient has an id and a creation time, used to calculate the time it took to be reach a free doctor (thread from thread pool)
- Each patient stays at a cabinet for a random time to keep the doctor occupied
-
Notifications
You must be signed in to change notification settings - Fork 0
Matoka26/Cabinet
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simulating activity of a doctor's cabinet with a thread_pool, patients are also threads that are being created ar random times and occupy the doctor for a random time
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published