From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,2de1b47b5205eba,start X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!t-online.de!irazu.switch.ch!switch.ch!news.grnet.gr!news.ntua.gr!not-for-mail From: "Ioannis E. Venetis" Newsgroups: comp.unix.tru64 Subject: How to bind a POSIX thread to a specific CPU? Date: Wed, 15 Jun 2005 21:05:10 +0300 Organization: National Technical University of Athens, Greece Message-ID: NNTP-Posting-Host: patroclos.hpclab.ceid.upatras.gr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ulysses.noc.ntua.gr 1118858700 15518 150.140.142.225 (15 Jun 2005 18:05:00 GMT) X-Complaints-To: usenet@ulysses.noc.ntua.gr NNTP-Posting-Date: Wed, 15 Jun 2005 18:05:00 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.2-6 (X11/20050513) X-Accept-Language: en-us, en Xref: g2news1.google.com comp.unix.tru64:752 Dear all, I am developing a multithreaded application using POSIX threads and I would like to bind each thread to a different processor. I found that there is the pthread_use_only_cpu() function which does what I need, but it is available only under Tru64 5.1A and later. Unfortunately, the system I am using has Tru64 5.1 and this function is not available. Is there another way to do this? I read some things about RADs (Resource Affinity Domains), but I am not certain whether they can be used to achieve what I like to do. To be honest, I am quite confused about what RADs are and how they are used and I would like to have some more information about them. Are RADs managed only by administrators? Can I create RADs from inside my application and bind the threads to specific processors in a RAD? If so, how is this done? Is there a pointer to documantation that explains step-by-step the usage of RADs? Or am I on a totally wrong path to implement binding of threads on processors? Thank you in advance for your help, Ioannis