With relaxed memory consistency we can get "hello world" or "world hello" as possible outputs in addition to "hello", "world" or nothing.
@Calloc Not necessarily. I think it depends on what relaxed memory consistency model you choose.
@aperley In this case, because there are only two threads, TOC and PC actually guarantee the same thing.
With relaxed memory consistency we can get "hello world" or "world hello" as possible outputs in addition to "hello", "world" or nothing.
@Calloc Not necessarily. I think it depends on what relaxed memory consistency model you choose.
@aperley In this case, because there are only two threads, TOC and PC actually guarantee the same thing.