Snarky, yes, but nothing that wasn't known before this article.
Snarky, yes, but nothing that wasn't known before this article.
Again, in this example I suspect things would have worked, because it's trivial code, but I wouldn't actually bet on it because I've seen MP fuck up so many times historically. Like, maybe one of those modules actually creates a static connection pool that gets messed up on mp? Who knows?
So yeah, maybe the obscene hack that 'mp' is would have worked or just use tcl, which is sane and worked for them. A note about mp in the post would have made sense, I just won't blame someone for not wanting to deal with it.
Some would argue that if you're using threads, well then you're fucked from the start, very possibly including me.
Go gets around this using go-routines, but go isn't necessarily thread safe per se. Futher go also has it's own bag of bugs you have to be aware of when using it.
I think maybe the true answer here is rust.
The very point of threads (as opposed to parallel processes) is the easy access to common memory and other resources.
> (And although the Python test script could run in multiple processes HammerDB is an application simulating multiple virtual users in a GUI and CLI environment requiring the close interaction and control of using multiple threads).