hplus0603 said:
asynchronous in Python basically means virtual multithreading
Python can run “threads,” but only one at a time. There's simply no way to saturate many cores in a single Python program – you'll have to fork (multiprocess) it to make that happen. This limitation is shared with JavaScript/node, btw.
Valid point, I forgot to mention it doesn't run in parallel, for that you'll need to use multicore or release the gil.
I guess it's more like event scheduling than multithreading.
For this model I suspect multithreading will virtually never pay off
The topic of the post is “UDP multithreaded load balancing” although I think a post saying “for me, that wasn't worth it” still fits…
Well, all I did was answer the questiion “why [do you] not utilize multithreading?”.
Prior to that, which is what I came for, I recommend a simpler language to use than C for stresstesting if op or anyone else was or is struggling in the future with getting the stresstesting going in the first place as you can't start building a house without getting some primary tool like a hammer first.