| alias | |
|---|---|
| tag | CodeNotebook |
file discussing ComSci paradigms and other advanced topics possible mentioned in lang specific mds in their respective folders
Parallelism: CPU Bound => Multi Processing
- you're running stuff in parallel and taking advance of multiple CPUs
Concurrency: I/O Bound, Fast I/O, Limited Number of Connections => Multi Threading
- concurrently running more tasks on one thread, context switching
Ansynchro: I/O Bound, Slow I/O, Many connections => Asyncio
- using async/awaits, waiting thread can let further code continue executing and the results from awaiting one are either received or needed
NOTE: low level languages such as C/C++, C#, Java achieve native parallelism computing by using threads, higher ones such as SnekTM🐍 and Google's abomination of Go locks down interpreters (GIL) and forces you to use further libraries (Multiprocessing) or tedious workarounds ((G|c)routines)
Threads #0 - summarizes the latter two Threads #1 Threads #2 - long article with examples specific for Python