Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5096 > unrolled thread
| Started by | James Mills <prologic@shortcircuit.net.au> |
|---|---|
| First post | 2011-05-11 17:34 +1000 |
| Last post | 2011-05-11 17:34 +1000 |
| 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.
Re: NewBie Doubt in Python Thread Programming James Mills <prologic@shortcircuit.net.au> - 2011-05-11 17:34 +1000
| From | James Mills <prologic@shortcircuit.net.au> |
|---|---|
| Date | 2011-05-11 17:34 +1000 |
| Subject | Re: NewBie Doubt in Python Thread Programming |
| Message-ID | <mailman.1395.1305099273.9059.python-list@python.org> |
On Wed, May 11, 2011 at 4:57 PM, vijay swaminathan <swavijay@gmail.com> wrote: [...] > 1. How the total active thread is 2? Your threads are terminating as normal. Without some kind of loop in your run() method they will execute the instructions and terminate. > 2. how do I stop a thread? does it get automatically stopped after execution Usually by a flag or condition that terminates your run() function/method. > 3. Am I totally wrong in understanding the concepts. > 4. what is the difference between active_count() and activeCount() since > both seem to give the same result. They are synonyms. > 5. is there a way to find out if the thread is still active or dead? See: pydoc threading.Thread or help(threading.Thread) cheers James -- -- James Mills -- -- "Problems are solved by method"
Back to top | Article view | comp.lang.python
csiph-web