2 ms·
>TL;DR: concurrency is unspecified in C. Does the same argument apply to binary code ran on a preemptive operating systems? The actual execution order of your
by frozenport 13y ago
>TL;DR: concurrency is unspecified in C.
Does the same argument apply to binary code ran on a preemptive operating systems? The actual execution order of your code is still unspecified, as the OS an interrupt it whenever it wants.
- Dylan16807 13y agoMostly. The OS and hardware will make certain guarantees about ordering and concurrency, and if you want more you need to specifically ask them for more. C makes almost no guarantees, but the basic concept is the same. Use the provided extensions to get safe order and concurrency.