Can we have race conditions in a single-thread program?
All examples are in a fictional language very close to Javascript. Short: A race condition can only occur between two or more threads / external state (one of them can be the OS). We cannot have race conditions inside a single thread process, non I/O doing program. But a single thread program can in many … Read more