Home Forums C Programming threads Win32 <-> Linux Reply To: threads Win32 <-> Linux

#3387
Priyansh Agrawal
Participant

Ok, I found the problem/solution but I’m not satisfied: All works fine when the optimizations in gcc are turned off.
Each optimization (O, O1, O2, O3, Os) will cause an endless loop.

Here an example: