Bug in phobos Thread module?

Lars Ivar Igesund larsivar at igesund.net
Sat May 12 09:43:41 PDT 2007


kenny wrote:

> Regan Heath wrote:
>> kenny Wrote:
>>> I also experience the same issue in linux. It happens after I
>>> create/delete over 8000 threads. I dunno why 8000 is the magic number,
>>> but it is for my machine. I'll try and look into it as well on linux.
>>> Just wanted to let you know that the problem also occurs in linux
>> 
>> Each operating system has a maximum number of handles, it differs for
>> operating system, each version of each operating system, and can be
>> defined for each process upon execution as well.  Or so I recall from my
>> travels.
>> 
>> Regan Heath
> 
> wow, now it's only giving me 382 threads... here is test code. Later
> today, I will dip into phobos and try and find the problem.

For what it's worth, the Tango version of Thread has several fixes and
changes compared to the Phobos version, and also provides other features
like thread local storage and fibers/co-routines.

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango



More information about the Digitalmars-d mailing list