This is the mail archive of the cygwin-talk mailing list for the cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: PThreads threads


On 09 August 2007 18:24, Christopher Faylor wrote:

> On Thu, Aug 09, 2007 at 03:13:25PM +0100, Dave Korn wrote:
>> On 09 August 2007 14:51, Siamak Sarmady wrote:
>>> I have written a simple pthreads program.  I create 1000 threads on
>>> cygwin windows but number of threads does not increase in task manager
>>> of windows.  (while when I add 1000 threads under java threads increase
>>> at least 1000). 
>>> 
>>> Does cygwin create threads actually or not?
>> 
>> Yeh, it does.  If you're not seeing them, I guess it's because a hippo
>> sneaked up and stole them while your back was turned.
> 
> Actually, there was a bug in cygwin at one point where the
> "CreateThreads" call actually generated a whole new set of clothes.  I
> had a problem with this at one point but my local salvation army was
> very happy about the bug.
> 
> cgf

  Well, I guess you could have replaced it with a call to the newer api,
CreateThreadsEx, which takes an enum { NATTY, TATTY, CHARITYSHOPWORTHY } ...

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]