optimization - What do the terms "CPU binding" and "I / O binding" mean?

What do the terms "CPU bound" and "I/O bound" mean?

This question and all comments follow the "Attribution Required."

All Answers

alexhales324 2021-10-11 20:47

We must say that your provided information is really amazing. Before two, I was also suffering with same issue but now its fine. 

Thanks allot. 

alexhales324 2021-10-11 20:48

CPython implementation detail: In CPython, due to the Global Interpreter Lock, only one thread can execute Python code at once (even though certain performance-oriented libraries might overcome this limitation). If you want your application to make better use of the computational resources of multi-core machines, you are advised to use multiprocessing or concurrent.futures.ProcessPoolExecutor. However, threading is still an appropriate model if you want to run multiple I/O-bound tasks simultaneously.


Answers Loading...
Leave a Reply
You must be logged in to post a answer.