Skip to content

Threads exercise in Java with Spring Tool Suite 4 and JDK 17. Ejercicio de hilos en Java con Spring Tool Suite 4 y JDK 17.

Notifications You must be signed in to change notification settings

dfleper/LaLocaUnidadUCI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LaLocaUnidadUCI🧵🏥

GitHub repo size GitHub last commit

- Demonstrate to the Director that there are insufficient staff to care for 32 patients.

- Demostrar al Director que el personal es infuficiente para atender a 32 pacientes.

Threads exercise in Java with Spring Tool Suite 4 and JDK 17. 🚑

  • The ICU can accommodate 16 patients.
  • The average length of stay of a patient in the ICU shall be 10 seconds.
  • It is estimated an arrival of 32 patients, one every 1/4 of a second.
  • There are 8 doctors on call, the stay time is 3 seconds.
  • There are 16 nurses on call, the stay time is 3 seconds.
  • The patient will never be able to enter the ICU if it is full or if there is no at least one doctor and one nurse.
  • Doctors will only be able to enter the ICU if there is no doctor or if the Ratio of doctors to patients is less than 1|4.
  • Nurses may only enter the ICU if there is no nurse or The proportion of nurse patients is less than 2|4.

Ejercicio de hilos en Java con Spring Tool Suite 4 y JDK 17. 🚑

  • La UCI tiene capacidad para 16 pacientes.
  • El tiempo medio de estancia de un paciente en la UCI será de 10 segundos.
  • Se estima una llegada de 32 pacientes, uno cada 1/4 de segundo.
  • Hay 8 doctores de guardia, el tiempo de estancia es de 3 segundos.
  • Hay 16 enfermeros de guardia, el tiempo de estancia es de 3 segundos.
  • El paciente no podrá entrar nunca en la UCI si está llena o si no hay como mínimo un doctor y un enfermero.
  • Los doctores sólo podrán entrar a la UCI si no hay ningún doctor o si la proporción doctores pacientes es inferior a 1|4.
  • Los enfermeros sólo podrán entrar en la UCI si no hay ningún enfermero o si la proporcion enfermeros pacientes es inferior a 2|4.
vcr.mp4

About

Threads exercise in Java with Spring Tool Suite 4 and JDK 17. Ejercicio de hilos en Java con Spring Tool Suite 4 y JDK 17.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages