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).
In reply to Re: multi-threaded questions
by renodino
in thread multi-threaded questions
by btoovey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |