From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,2de1b47b5205eba X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!newsfeed.stueberl.de!newsfeeder1.noc.eunet-ag.at!news.eunet.at!news-hub.siol.net!news.siol.net!not-for-mail From: Newsgroups: comp.unix.tru64 Subject: Re: How to bind a POSIX thread to a specific CPU? Message-ID: References: X-Newsreader: MicroPlanet Gravity v2.30 Date: Thu, 16 Jun 2005 10:45:29 +0200 NNTP-Posting-Host: 213.229.248.5 X-Complaints-To: abuse@siol.net X-Trace: news.siol.net 1118911621 213.229.248.5 (Thu, 16 Jun 2005 10:47:01 MET DST) NNTP-Posting-Date: Thu, 16 Jun 2005 10:47:01 MET DST Organization: Slovenija OnLine - SiOL Xref: g2news1.google.com comp.unix.tru64:753 In article , iev@hpclab.ceid.upatras.gr says... > 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 > Hm, I remember somthing like pthread_set_concurency()... see man page