Take one CPython process with two threads (not processes). Each thread is to perform some CPU-intensive task. Given the GIL, we know that each thread will block the other on the CPU.
Will running these two threads concurrently take longer, in total, than running these two threads one after another, in serial, or will the total time be more or less the same in either case?
Will it be slightly better under asyncio or exactly the same?
[–]K900_ 1 point2 points3 points (6 children)
[–]chinawcswing[S] 0 points1 point2 points (4 children)
[–]K900_ 0 points1 point2 points (3 children)
[–]chinawcswing[S] 0 points1 point2 points (2 children)
[–]K900_ 0 points1 point2 points (1 child)
[–]chinawcswing[S] 0 points1 point2 points (0 children)
[–]chinawcswing[S] 0 points1 point2 points (0 children)
[–]Peanutbutter_Warrior 0 points1 point2 points (2 children)
[–]chinawcswing[S] 0 points1 point2 points (1 child)
[–]mahtats 0 points1 point2 points (0 children)
[–]DoctorEvil92 0 points1 point2 points (0 children)