in reply to multi-threaded questions
a) If I use an smp system on Linux, can I expect threads to run on different processors like kernel threads?Assuming your Linux is using the right threading kernel/library, yes. ithreads is based on pthreads on most POSIX-like systems. Assuming the provided pthreads implementation is SMP capable, ithreads will be as well.
How exactly is the determination made which processor which thread runs on?Thats a pthreads/OS kernel issue. I believe some platforms provide APIs to bind individual threads to run on specific CPUs, but I don't know that they're widely implemented.
One note about your app: 30 + 30 threads may appear to consume a lot of vmem on Linux (and Windows too). Consider tuning the default thread stack size to a small value (see Re: Use more threads. and the threads CPAN note).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: multi-threaded questions
by btoovey (Novice) on Dec 08, 2006 at 16:32 UTC | |
|
Re^2: multi-threaded questions
by btoovey (Novice) on Dec 08, 2006 at 19:15 UTC | |
by renodino (Curate) on Dec 08, 2006 at 20:30 UTC | |
by btoovey (Novice) on Dec 08, 2006 at 21:16 UTC | |
by renodino (Curate) on Dec 08, 2006 at 22:08 UTC |