Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5096
| References | <BANLkTikr8fu1sDrfu2a-wyEN_KpVVNCdew@mail.gmail.com> |
|---|---|
| From | James Mills <prologic@shortcircuit.net.au> |
| Date | 2011-05-11 17:34 +1000 |
| Subject | Re: NewBie Doubt in Python Thread Programming |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1395.1305099273.9059.python-list@python.org> (permalink) |
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 comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: NewBie Doubt in Python Thread Programming James Mills <prologic@shortcircuit.net.au> - 2011-05-11 17:34 +1000
csiph-web