CST 334 Weekly Journal #5

 Weekly Journal

This week I learned about concurrent programming using threads. In the readings, it showed how to use tasks like pthread_create and pthread_join. Using pthread_create it created the threads while using pthread_join synchronizes them. Furthermore, I found it interesting how threads can share the same address space and how it improves multipurpose systems. Also, there is something called locks which is very important for thread utilization, and that's because it makes sure only one thread can access critical parts of the code at a time to help with preventing errors. This is also referred to as the Mutexes lock. All in all, the readings were very informative and went a little more on how to use the locks in data structures as well. It was a little different, from the other programs I learned so far, but it was still cool to learn about all the different locks you can use differently and how threads work too.

Comments

Popular Posts