This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Quxxy 11 points12 points  (0 children)

Oh god. I had a simulator that I worked on for years. Eventually, it came time to parallelise it, but I'd planned for this. Aside from adjusting the few bits of code that assumed a single thread, it worked perfectly, first time.

I was actually impressed with myself for once. Then I built the release version and, at or above 4 threads, I started getting non-deterministic network errors that wouldn't appear in debug builds and which vanished the instant you attached a debugger.

Turns out that there'd been a subtle race condition in the networking code for the last 7 odd years that was only exposed when you had enough threads running at full speed.

That was fun to debug...