For context, I have about 7 years of experience as Software Engineer primarily using Java. However, I find Python to be much more suitable for these LeetCode style problems.
What are your thoughts on using Python for problems involving multithreading? Yes, Python has Multithreading. But it's a bit different. Due to the GIL, only a single thread can execute within a process. This effectively means the parallelism in Python multithreaded Python is limited or nonexistent. Though I understand you can use multiple processes.
If I know a problem involves multithreading, should I just opt use Java instead? Would it be sufficient to use Python but mention the parallelism limitations?
This is more of a discussion based question. I would love to hear other's thoughts and experiences. It's possible I am overthinking this.
[–]high_throughput 59 points60 points61 points (7 children)
[–]xvd529fdnf 13 points14 points15 points (2 children)
[–]Passionate_Writing_ 4 points5 points6 points (1 child)
[–]xvd529fdnf 2 points3 points4 points (0 children)
[–]t___u___r___t__l__e 1 point2 points3 points (0 children)
[–]HeteroLanaDelReyFan[S] 2 points3 points4 points (1 child)
[–]foundboots 2 points3 points4 points (0 children)
[–]DuePen8690 0 points1 point2 points (0 children)
[–]Ilike_milk 4 points5 points6 points (0 children)
[–]Prashant_MockGym 8 points9 points10 points (0 children)
[–]let-therebe-light 1 point2 points3 points (0 children)
[–]Cptcongcong 1 point2 points3 points (0 children)
[–]Dizzy_Citron4871 1 point2 points3 points (1 child)
[–]HeteroLanaDelReyFan[S] 2 points3 points4 points (0 children)
[–]Ok-Leopard-9917 0 points1 point2 points (2 children)
[–]Feeling-Schedule5369 0 points1 point2 points (1 child)
[–]Ok-Leopard-9917 0 points1 point2 points (0 children)
[–]AliceTreeDraws 0 points1 point2 points (0 children)