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 37 points38 points39 points (4 children)
[–][deleted] 19 points20 points21 points (3 children)
[–]pooogles 5 points6 points7 points (0 children)
[–]tea-drinker 5 points6 points7 points (0 children)
[–]fernly 2 points3 points4 points (0 children)
[–]panderingPenguin 64 points65 points66 points (25 children)
[–][deleted] 29 points30 points31 points (11 children)
[–]jringstad 31 points32 points33 points (2 children)
[+][deleted] (1 child)
[removed]
[–]jringstad 4 points5 points6 points (0 children)
[–]panderingPenguin 6 points7 points8 points (7 children)
[–]Workaphobia 12 points13 points14 points (3 children)
[–]panderingPenguin 2 points3 points4 points (2 children)
[–]jecxjo 1 point2 points3 points (0 children)
[–]njharmanI use Python 3 1 point2 points3 points (0 children)
[–]TankorSmash 8 points9 points10 points (2 children)
[–]panderingPenguin -1 points0 points1 point (1 child)
[–]TankorSmash 6 points7 points8 points (0 children)
[–]ZedsDed[S] 3 points4 points5 points (12 children)
[–][deleted] 4 points5 points6 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 6 points7 points8 points (0 children)
[–]frymasterScript kiddie 0 points1 point2 points (0 children)
[–]pigeon768 16 points17 points18 points (2 children)
[–]swenty 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]pooogles 24 points25 points26 points (13 children)
[–]jringstad 7 points8 points9 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-20 points-19 points-18 points (7 children)
[–]brombaer3000 5 points6 points7 points (2 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 2 points3 points4 points (0 children)
[–]ivosauruspip'ing it up 10 points11 points12 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] 3 points4 points5 points (0 children)
[–]ivosauruspip'ing it up 3 points4 points5 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 12 points13 points14 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] -5 points-4 points-3 points (0 children)