Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #52273 > unrolled thread

Re: Python3 Multiprocessing

Started byrandom832@fastmail.us
First post2013-08-09 16:54 -0400
Last post2013-08-09 16:54 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Python3 Multiprocessing random832@fastmail.us - 2013-08-09 16:54 -0400

#52273 — Re: Python3 Multiprocessing

Fromrandom832@fastmail.us
Date2013-08-09 16:54 -0400
SubjectRe: Python3 Multiprocessing
Message-ID<mailman.408.1376081681.1251.python-list@python.org>
On Fri, Aug 9, 2013, at 16:43, Devyn Collier Johnson wrote:
> Thanks MRAB! That is easy. I always (incorrectly) thought the join() 
> command got two threads and made them one. I did not know it made the 
> script wait for the threads.

What you're missing is the fact that the main thread [i.e. the one
running "the script", and that waits for the thread you call the method
on] is, well, a thread. So, you start with two threads [the main thread
and the jobs1 thread, for example], and end up with one [the main
thread]. This is why it's called join.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web