CST334 Module 6

 What to Write in your Journal Entry  Write a 1 - 2 paragraph description of what you learned this sixth week in CST 334 Topic: semaphores

This week was light on material but what we did have focused on semaphores. Semaphores are integers that are used to manage synchronization between threads. They are commonly used to manage critical sections between threads. Operating systems generally provide 2 methods alongside semaphores. Those being acquire and release methods such as SEM_POST and SEM_WAIT. Calling the SEM_WAIT method decrements the semaphore by 1 which then causes any other threads that call that same method to be blocked until the original thread calls the SEM_POST method which increments the semaphore and wakes a waiting thread.

Comments

Popular posts from this blog

CST489 / 499 Week 10

CST489 / CST499 Week 12

CST489 / 499 Week 16