Concurrency and Memory Models
Filip Sieczkowski
Concurrency and Memory Models Filip Sieczkowski Why concurrency? - - PowerPoint PPT Presentation
Concurrency and Memory Models Filip Sieczkowski Why concurrency? Moores law Every two years, the number of transistors in a dense integrated circuit doubles The keystone of microprocessor industry Physical limitations Finite
Filip Sieczkowski
dense integrated circuit doubles
http://matt.might.net/papers/might2009manycorefad-talk.pdf
communicate
atomic command
in the memory
interleaving of the instructions
results are (0, 1), (1, 0) and (1,1)
java.util.concurrent
communication primitive!
are very complicated
writing costs 10–20 cycles at the least!
a FIFO buffer
buffer
its own store buffer before consulting the main memory
nondeterministically flushed
main memory
buffered writes to main memory
reasoning even further!
buffer effects as executing the reads before the writes
semantics r is always 42
more code reordering?
actually allow that to happen!
machines — without sacrificing correctness
nonstandard memory models on the source level!
complex