Previous | Next --- Slide 12 of 51
Back to Lecture Thumbnails
Calloc

With relaxed memory consistency we can get "hello world" or "world hello" as possible outputs in addition to "hello", "world" or nothing.

aperley

@Calloc Not necessarily. I think it depends on what relaxed memory consistency model you choose.

pkoenig10

@aperley In this case, because there are only two threads, TOC and PC actually guarantee the same thing.