Week 30 - Concurrency Continued
This week we explored concepts in concurrency and focused on synchronization and common problems in multi-threading. I learned that problems can arise when a system tries to process multiples tasks or in overlapping time periods. We were introduced to semaphores which are an important synchronization primitive. These can be used to manage access to shared resources in concurrent programming environments.
The lab this week focused on synchronization using semaphores. The aim was to get familiar with solving synchronization issues like the producer-consumer problem. Using semaphores, we were able to implement thread-safe operations to ensure mutual exclusion and prevent race conditions. This lab reinforced the importance of using synchronization techniques to avoid unpredictable and inconsistent behavior caused by allowing access to shared resources.
Comments
Post a Comment