CST334: Journal Entry Week 5
The topic of this week was concurrency. We learned about threads and how multi-threading can be more efficient, but introduces new problems that occur when trying to schedule threads. That’s where we dive in the idea of locks and how they atomize critical sections of code. Locks are used by the task scheduler to enable the use of concurrent threads without causing race conditions and other issues that prevent programs from executing properly. These concepts reminded me of database locks, it’s basically the same idea. The chapters we read also cover the concepts of lock-based concurrent data structures and condition variables which are another necessary component of scheduling for multiple threads.
Comments
Post a Comment