Newbie question : What is a thread?
Aahz Maruch
aahz at panix.com
Fri Dec 29 11:14:49 EST 2000
More information about the Python-list mailing list
Fri Dec 29 11:14:49 EST 2000
- Previous message (by thread): Newbie question : What is a thread?
- Next message (by thread): Python vs PHP (& Java?)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <92hod8$298$1 at nnrp1.deja.com>, <judi_ahivodji at yahoo.fr> wrote: > >I'm a beginner in Python an I would like someone to tell me what is a >thread and/or where I can find other deep explanations about it. A thread is a unit of program control that is used to keep track of which statement is being executed. It's similar to a "process" (and a process is essentially equivalent to "one running program"). However, each process can have multiple threads inside it, and the threads all share that one process's memory. Threads are useful because of that shared memory (making communication between parts of a large program somewhat simpler than inter-process communication). Threads are also usually faster to context-switch than processes are, because the computer has to store less information for a thread than a process. For a brief not-tutorial, see http://starship.python.net/crew/aahz/ -- --- Aahz (Copyright 2000 by aahz at pobox.com) Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/ Hugs and backrubs -- I break Rule 6 Ninth Virtual Anniversary: 2 days and counting
- Previous message (by thread): Newbie question : What is a thread?
- Next message (by thread): Python vs PHP (& Java?)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list