Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Tiny, dirty, iffy, good enough, basic multi-threaded web crawler in Python. Parent comment
Threading is for CPU bound problems that requires a shared memory space.
I/O multiplexing and/or cooperative multitasking means you can have thousands concurrent connections per thread.
Threading is for CPU bound problems that requires a shared memory space.
I/O multiplexing and/or cooperative multitasking means you can have thousands concurrent connections per thread.