2 ms·
> a beefy NT4-based Citrix server This was also when I learned about the pitfalls of multithreading... I had started trying to use multithreading, and had imp
by magicalhippo 3y ago
> a beefy NT4-based Citrix server
This was also when I learned about the pitfalls of multithreading...
I had started trying to use multithreading, and had implemented it in my raytracer. It worked like a charm on my machine.
During that project they brought a 4-socket server in the lab for testing, so after hours I fired up my raytracer on it, excited to see the promised 4x speedup... only to be met by an immediate access violation.
I had of course missed a lock, but it worked fine on my computer because it only had a single CPU (core) so even if I spawned multiple threads, the chances of them tripping over each other at that point was very low. Not so when they could actually run simultaneously.