If I remove the sdata global and just accumulate the i values it will complete as expected in 3s in both cases. If it had smth to do w context switching that version would be slow as well right? I also need/want to have both threads run simultaneously,
with identical priorities. Any other ideas?
↧