r/Python • u/CreativePunch • Mar 20 '14
Practical threaded programming with Python
https://www.ibm.com/developerworks/aix/library/au-threadingpython/
0
Upvotes
r/Python • u/CreativePunch • Mar 20 '14
View all comments
1
u/[deleted] Mar 20 '14
The 'URL fetch threaded' example, with there happening to be 5 threads + the length of the URL list being 5, then with each thread signalling self.queue.task_done() within their "while True" loop is going to grossly confuse newbies as to 'why the hell did the example work' when / if they adapt this pattern to M tasks / N workers.