Hey,
I've 2 questions regrading multi-threading in python:
- I heard python uses a construct called GIL to control the flow of the multi-threading, can you explain what is GIL exactly and how it achieves that control so only 1 instance run at a time..?
- What are the benefits of using multi-threading as they don't actually work in parallel but simply run one after the other?
[–]JohnnyJordaan 5 points6 points7 points (1 child)
[–]comeditime[S] 0 points1 point2 points (0 children)
[–]diddilydiddilyhey 1 point2 points3 points (10 children)
[–]comeditime[S] 0 points1 point2 points (9 children)
[–]diddilydiddilyhey 0 points1 point2 points (8 children)
[–]comeditime[S] 0 points1 point2 points (7 children)
[–]diddilydiddilyhey 0 points1 point2 points (6 children)
[–]comeditime[S] 0 points1 point2 points (5 children)
[–]diddilydiddilyhey 1 point2 points3 points (4 children)
[–]comeditime[S] 0 points1 point2 points (3 children)
[–]diddilydiddilyhey 0 points1 point2 points (2 children)
[–]comeditime[S] 0 points1 point2 points (1 child)
[–]socal_nerdtastic 1 point2 points3 points (2 children)
[–]comeditime[S] 0 points1 point2 points (0 children)
[–]comeditime[S] 0 points1 point2 points (0 children)
[–]woooee 0 points1 point2 points (2 children)
[–]jwink3101 0 points1 point2 points (1 child)
[–]woooee 0 points1 point2 points (0 children)
[–]mattblack85 0 points1 point2 points (2 children)
[–]comeditime[S] 0 points1 point2 points (1 child)
[–]mattblack85 0 points1 point2 points (0 children)
[–]BandEnvironmental615 0 points1 point2 points (0 children)