Re:Parallelising Python with Threading and Multiprocessing
by sitkack on Saturday May 03, 2014 @04:59PM
(#7692321)
Yes, they are concurrent but not parallel.
[ Parent
| on HN ]
Re:Parallelising Python with Threading and Multiprocessing
by deathanatos on Sunday May 04, 2014 @03:27AM
(#7693628)
See other replies to the post you've replied to: threads in Python can be "parallel", if one of the threads releases the GIL. This can happen during calls to I/O, or more generally, any C call that decides to release the GIL. Most of the time, you're doing I/O anyways, so it suffices. If you're not (you're truly doing computation), then there is multiprocessing.