each process only has one main thread ,right ?

Steven D'Aprano steve+comp.lang.python at pearwood.info
Wed Feb 6 12:52:49 CET 2013


iMath wrote:

> When a program starts up, one thread begins running immediately. This is
> usually called the main thread of the program ,so each process only has
> one main thread ,right ?

I'm not sure if we should say "each process HAS one main thread" or "each
process IS one main thread", or whether there is in fact a difference. But,
yes, each process is equivalent to a single thread.


-- 
Steven




More information about the Python-list mailing list