Slide 1CONCURRENT PROGRAMMING Introduction to Locks and Lock-free data structures 1 Slide 2 Agenda Concurrency and Mutual Exclusion Mutual Exclusion without hardware primitives…