Skip to content

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

Notifications You must be signed in to change notification settings

Matoka26/Cabinet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cabinet

Task:
Screenshot from 2024-01-16 00-39-31

  • 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

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

No packages published

Languages