News for hackers. Stuff that matters.
Re:Slimming Down Windows 3.1/3.11 (2002) by magicalhippo on Monday February 26, 2024 @03:57PM (#39516699)
> 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.

There are no comments on this comment yet.