2 ms·
time.Sleep(1000) could be replaced with a real syncing mechanism of some kind -- it's only for illustration.
by heythere124 9y ago
time.Sleep(1000) could be replaced with a real syncing mechanism of some kind -- it's only for illustration.
- the8472 9y agoa real syncing mechanism would introduce compiler barriers that prevent such an optimization.