Hacker News new | ask | show | jobs
by heythere124 3278 days ago
time.Sleep(1000) could be replaced with a real syncing mechanism of some kind -- it's only for illustration.
1 comments

a real syncing mechanism would introduce compiler barriers that prevent such an optimization.