Skip to content

OS Project: Sleeping Teaching Assistant using mutex locks and semaphores.

License

Notifications You must be signed in to change notification settings

shehab-as/Sleeping-Teaching-Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Sleeping-Teaching-Assistant

OS Project: Sleeping Teaching Assistant using mutex locks and semaphores.

N threads for students. 1 thread for TA.

Semaphores used:

  1. A semaphore to signal and wait TA's sleep.
  2. An array of 3 semaphores to signal and wait chair to wait for the TA.
  3. A semaphore to signal and wait for TA's next student.

Mutex Lock used:

  1. To lock and unlock variable ChairsCount to increment and decrement its value.

About

OS Project: Sleeping Teaching Assistant using mutex locks and semaphores.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages