Subj : Re: Running two pthreads with dual processors To : comp.programming.threads From : Christian Panten Date : Thu Feb 24 2005 09:32 am D'artagnan wrote: > I am working with a Linux cluster, each node has 2 Intel 2.0GHz > processors. The interconnect is a Myrinet switch. My questions is, if I > develop an application with two Pthreads, how do I control such that > the two threads running on different processors? My current statistics > show that only one processor is used, the other one is 99% idle. I am > using RedHat (Linux 2.4) and I don't have NPTL. Thanks. You can test your Programm by watching the process-table with top. If I hit the 1-key (one) top tells me the load of each cpu.So you can see, whether linux uses both cpus. How do you calculate your statistics..?? Best regards Christian .