RE: Maximum number of threads
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Thread-index: AcTRcYGothPuH/JxR1yo8/H6Bnfc3QABKBaw Surely, uless you have a 15,000 Processor system, that at some point your system will become processor bound? It will spend more time context switching than it actually does running the processes. Can't one thread handle multiple queues? -Kenny
-----Original Message----- From: darwin-dev-bounces+kennymillar=mac.com@lists.apple.com [mailto:darwin-dev-bounces+kennymillar=mac.com@lists.apple.com ] On Behalf Of Andreas Yankopolus Sent: 23 November 2004 15:31 To: Shawn Erickson Cc: darwin-dev@lists.apple.com Subject: Re: Maximum number of threads
Shawn,
Wow... why so many threads?
Why not a thread pool of worker threads that you can take tasks off of a queue or something?
Somehow I knew this question would come up sooner or later :-)
I'm working on a communications simulation where the straightforward approach involves creating one thread per node. This thread both generates new messages based on traffic models and listens for messages from other nodes. In some instances, more than one thread per node would prove handy. The network has 15k+ nodes, and therein lies the problem.
Cheers,
Andreas
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/kennymillar% 40mac.com
This email sent to kennymillar@mac.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Kenny Millar