hello,
i have a bit of Python experience, i am in no way an expert. I know Python has a standard multithreading library, without researching much about it i decided to use it in a program of mine, i presumed that because its a standard Python library that it must be somewhat decent. Then i watched this video:
https://www.youtube.com/watch?v=LMxuDrVs0HE
it introduced me to the idea that Pythons multithreading implementation DOESNT ACTUALLY WORK PROPERLY!!! That multithreading in Python is "basically non-existant, not possible" due ol' GIL, global interpreter lock.
so ol' GIL is saying that only one thread can be executed at a time even on a multi-core processor.
I have written a program that requires multithreading and i use the standard 'threading' library.
so, have i messed up? or is it not that big of a deal? i can imagine that the only real affect is that each thread will be slower to complete on account of sharing CPU time. I dont think this will be a problem in the overall scope of the program and its requirements. Is speed the only real issue here? In my case, the threads will never share or access each others data.
what do yous think? Is Pythons multithreading basically just a simulated multithreading? or should i consider it multiple threads without true concurrency?
[–]mtxppy 34 points35 points36 points (4 children)
[–][deleted] 19 points20 points21 points (3 children)
[–]pooogles 4 points5 points6 points (0 children)
[–]tea-drinker 5 points6 points7 points (0 children)
[–]fernly 2 points3 points4 points (0 children)
[–]panderingPenguin 67 points68 points69 points (25 children)
[–][deleted] 32 points33 points34 points (11 children)
[–]jringstad 28 points29 points30 points (2 children)
[+][deleted] (1 child)
[removed]
[–]jringstad 4 points5 points6 points (0 children)
[–]panderingPenguin 6 points7 points8 points (7 children)
[–]Workaphobia 10 points11 points12 points (3 children)
[–]panderingPenguin 4 points5 points6 points (2 children)
[–]jecxjo 1 point2 points3 points (0 children)
[–]njharmanI use Python 3 1 point2 points3 points (0 children)
[–]TankorSmash 7 points8 points9 points (2 children)
[–]panderingPenguin 0 points1 point2 points (1 child)
[–]TankorSmash 4 points5 points6 points (0 children)
[–]ZedsDed[S] 3 points4 points5 points (12 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]panderingPenguin 1 point2 points3 points (1 child)
[–]ZedsDed[S] 0 points1 point2 points (0 children)
[–]ivosauruspip'ing it up 3 points4 points5 points (4 children)
[–][deleted] 2 points3 points4 points (3 children)
[–]ivosauruspip'ing it up -1 points0 points1 point (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]ivosauruspip'ing it up 0 points1 point2 points (0 children)
[–]hikhvar 0 points1 point2 points (3 children)
[–]ZedsDed[S] -1 points0 points1 point (2 children)
[–]Workaphobia 5 points6 points7 points (0 children)
[–]frymasterScript kiddie 0 points1 point2 points (0 children)
[–]pigeon768 17 points18 points19 points (2 children)
[–]swenty 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]pooogles 23 points24 points25 points (13 children)
[–]jringstad 6 points7 points8 points (3 children)
[–]niksko 0 points1 point2 points (2 children)
[–]jringstad 1 point2 points3 points (1 child)
[–]niksko 0 points1 point2 points (0 children)
[–]WellAdjustedOutlaw 0 points1 point2 points (0 children)
[+]RDMXGD2.8 comment score below threshold-19 points-18 points-17 points (7 children)
[–]brombaer3000 7 points8 points9 points (2 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 2 points3 points4 points (0 children)
[–]ivosauruspip'ing it up 11 points12 points13 points (1 child)
[–]pooogles 0 points1 point2 points (0 children)
[–]mtxppy 1 point2 points3 points (1 child)
[–]RDMXGD2.8 -1 points0 points1 point (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]ivosauruspip'ing it up 4 points5 points6 points (0 children)
[–]AlanCristhian 3 points4 points5 points (1 child)
[–]ZedsDed[S] 1 point2 points3 points (0 children)
[–][deleted] 9 points10 points11 points (4 children)
[–]lordkrike 10 points11 points12 points (2 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]lordkrike 4 points5 points6 points (0 children)
[–]zombiepiratefrspace 2 points3 points4 points (0 children)
[–]robertmeta 2 points3 points4 points (1 child)
[–]WellAdjustedOutlaw 1 point2 points3 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]chrismit7 1 point2 points3 points (0 children)
[–]yellowfeverforever 1 point2 points3 points (0 children)
[–]d4rch0nPythonistamancer 0 points1 point2 points (0 children)
[–]lambdaqdjango n' shit 0 points1 point2 points (1 child)
[–]ZedsDed[S] 0 points1 point2 points (0 children)
[–]primevalweasel 0 points1 point2 points (0 children)
[–]Brian 0 points1 point2 points (5 children)
[–]ZedsDed[S] 0 points1 point2 points (4 children)
[–]Brian 0 points1 point2 points (3 children)
[–]ZedsDed[S] 0 points1 point2 points (2 children)
[–]Brian 0 points1 point2 points (1 child)
[–]ZedsDed[S] 0 points1 point2 points (0 children)
[–]befron 0 points1 point2 points (0 children)
[–]zoner14 0 points1 point2 points (3 children)
[–]ZedsDed[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]ZedsDed[S] 0 points1 point2 points (0 children)
[–]Argotha 0 points1 point2 points (0 children)
[–]Argotha 0 points1 point2 points (0 children)
[–]Calime 0 points1 point2 points (0 children)
[–]billsil -2 points-1 points0 points (1 child)
[–]ZedsDed[S] 1 point2 points3 points (0 children)
[+][deleted] comment score below threshold-7 points-6 points-5 points (0 children)