Techniques and Structures in Concurrent Programming. Wilfredo Velazquez. Outline. Basics of Concurrency Concepts and Terminology Advantages and Disadvantages Amdahl’s Law Synchronization Techniques Concurrent Data Structures Parallel Correctness Treading A.P.I.’s. Basics of Concurrency.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
So T1 and T2’s instructions could occur in the following order:
T1::read x //reading 0
T2::read x //reading 0
T1::add 1 //0+1
T2::add 1 //0+1
T1::write x //writing 1
T2::write x //writing 1
boolean CAS(memoryLocation, old, new)
If(*memoryLocation == old)
*memoryLocation = new;