Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Maximum number of threads




On Nov 23, 2004, at 4:10 AM, Andreas Yankopolus wrote:

I'm bumping into what appears to be Darwin's pthread limit: my process stops creating threads after spinning off about 2558 of them (top gives a system total of 2711 threads). I've reduced the stack size of each thread, so I'm not running out of memory. On Linux, I'd recompile the threading library with a larger number for PTHREAD_THREADS_MAX. How do I go about raising the limit on OS X?

(don't know the answer to your question but...)

Wow... why so many threads?

Why not a thread pool of worker threads that you can take tasks off of a queue or something?

-Shawn

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >Maximum number of threads (From: Andreas Yankopolus <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.