Python threading tutorial?
pythonhda
pythonhda at yahoo.com.replacepythonwithlinux
Sat Jan 4 10:46:43 EST 2003
Take a look at: http://directory.google.com/Top/Computers/Programming/Threads/?tc=1 - To get some theory.
For Python specific stuff: http://starship.python.net/crew/aahz/IPC9/index.html - It REALLY helps if you know a little about threads already, but there are quite a few code examples on the site. I did some threading in C before trying it out in Python so I had little trouble taking the information from this site and applying it...good luck!
On Sat, 4 Jan 2003 12:32:01 +0100
Gerrit Holl <gerrit at nl.linux.org> wrote:
> Hello,
>
> I am looking for a tutorial on threading using Python. I do know Python, but
> I don't know threading. I have read the documentation on the threading module
> and searched for help on the web and in the archives, but I have not been able
> to find what I'm looking for.
>
> I don't really understand threading. If I have multiple threads, can these
> threads interact? When should I use threads, and when shouldn't I? In which
> cases are threads useful, and in which cases does the phrase on Regular
> Expressions apply ("problem -> regex -> two problems")?
>
> My case is an exercise application in which multiple object are randomly
> wandering through a field, but when they meet they interact and go in
> opposite directions. All those objects will be class instances and need to
> "live" seperately, only interacting when they meet. Can threads help me in
> this particular problem, or do threads have (very) different uses?
>
> I hope someone can point me to Python-oriented documentation regarding
> this questions.
>
> yours,
> Gerrit Holl.
>
> --
> Asperger Syndroom - een persoonlijke benadering:
> http://people.nl.linux.org/~gerrit/
> Het zijn tijden om je zelf met politiek te bemoeien:
> http://www.sp.nl/
>
More information about the Python-list
mailing list