thread module

Ahmed Bouferguene aboufer at
Tue Jul 24 10:11:09 EDT 2001


Just one comment. You should try to use "threading" module which is better than
the old "thread" .

TheDustbustr wrote:

> What args are encessary when you call thread.start_new_thread()?  The module
> index says:
> "start_new_thread (function, args[, kwargs])
> Start a new thread. The thread executes the function function with the argument
> list args (which must be a tuple). The optional kwargs argument specifies a
> dictionary of keyword arguments."
> How do I create a simple thread like so:
> def hi():
>   print "Hi!"
> thread.start_new_thread(hi(),args)
> What are the args?

More information about the Python-list mailing list