Thread-ID - how much could be?

Ervin Hegedüs airween at gmail.com
Fri Sep 12 02:30:41 EDT 2014


Hi Steven,

On Fri, Sep 12, 2014 at 11:29:56AM +1000, Steven D'Aprano wrote:
> >>>> import sys
> >>>> print sys.maxint
> > 9223372036854775807
> > 
> > the couter could be 9223372036854775807?
> > 
> > And after? :)
> 
> Suppose you somehow managed to create 9223372036854775807 threads. If your
> computer has 16 GB of RAM available, that means that at most each thread
> can use:

so, thanks for your and others answers - this was just a
_theoretical_ question. What is the practice - that's an another
thread. :)

I just simply interested about this theory, not more. I don't
care with-how-many-memories-needs-and-how-many-years-to-overflow
that counter, but many people calculates that - thanks :)


Cheers,


a.




More information about the Python-list mailing list