3 ms·
Actually the event loop in nodejs uses several threads. There is parallelism. It's the granularity of the atomic operations that causes certain types of data ra
by crimsonalucard 8y ago
Actually the event loop in nodejs uses several threads. There is parallelism. It's the granularity of the atomic operations that causes certain types of data race bugs.
In node, var x = 5; is atomic.
In golang var x: Int = 5 is not atomic.