Re: threads or processes?
Re: threads or processes?
- Subject: Re: threads or processes?
- From: Andreas Färber <email@hidden>
- Date: Mon, 30 Jan 2006 02:58:06 +0100
Daniel Jalkut schrieb:
> Well, I regularly run more than 100 processes on my PowerMac G5 2.0Ghz.
>
> And the new Intel macs are supposed to be about a bajillion or 2
> bajillion times faster than that, so I hear.
The fact that you have any number of processes running does not
contribute to whether it is more performant to use processes, threads or
run loops. Having 100 threads running within one process will likely
still be faster on both PPC and Intel! It eliminates some overhead for
the OS and processor when switching between them, as a process has an
address space of its own whereas a thread does not ("lightweight
process"), only some associated context information I believe.
Andreas
P.S. Doesn't Apache 2.x support running on multiple threads? Or is that
for Windows only?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden