python - Confusion about the term I/O when used in different settings and in reference to GIL -


it seems when google i\o is, hits show stands "input" , "output". see blogs on python titled, "python file i\o --part 19, advanced file input , output " if go python docs , search input/output: https://docs.python.org/3/tutorial/inputoutput.html examples limited print statements , reading/writing files.

i see no examples of web-services or networking input/output in "input , output" section of python docs, despite seeing term i/o used these concepts. i/o containing same meaning when referring web-services , networks well?

i've been doing lot of reading on gil , multi-threading , term i/o bound has popped in addition i/o.

i/o bound seems refer state there lot of cpu idleness, due slowness of getting data cpu. multi-threading seems used webservices , networking because i'm assuming there lot of cpu idleness, i.e i/o bound heavy tasks because waiting user-input act upon.

now print statements read/write files considered i/o bound tasks?

finally, term i/o has popped in python docs regarding gil:

"the gil controversial because prevents multithreaded cpython programs taking full advantage of multiprocessor systems in situations. note potentially blocking or long-running operations,, such i/o image processing, , numpy number crunching, happen outside gil. therefore in multithreaded programs spend lot of time inside gil, interpreting cpython bytecode, gil becomes bottleneck."

so reference i/o in text, says i/o tasks bypass gil -- mean print, reading , write files, webservices, networking etc -- these types of tasks bypass gil , can exploited multithreading?

thank you.

yes, i/o stands input/output. point of view of program. input can come many different sources, such keyboard, mouse, or network connection. similarly, output can sent many different sources. programming languages define input , output operations can work variety of sources , destinations. makes easier write code because receive , send data without worrying details of comes or goes to.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -