RE: Maximum number of threads
RE: Maximum number of threads
- Subject: RE: Maximum number of threads
- From: "Kenny Millar" <email@hidden>
- Date: Tue, 23 Nov 2004 16:07:01 -0000
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=email@hidden
> [mailto:darwin-dev-bounces+kennymillar=email@hidden
> ] On Behalf Of Andreas Yankopolus
> Sent: 23 November 2004 15:31
> To: Shawn Erickson
> Cc: email@hidden
> 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 (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 40mac.com
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden