Subj : Re: Running two pthreads with dual processors To : comp.programming.threads From : David Schwartz Date : Wed Feb 23 2005 07:54 pm "D'artagnan" wrote in message news:1109216546.352776.134000@z14g2000cwz.googlegroups.com... >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. There is nothing special you need to do. Most likely, only one of your threads is ready to run, for some reason or you are generating your statistics incorrectly. DS .