RE : Re:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



thanks a lot, is it possible only for a process or for a thread also to set the affinity?

like at the thread creation

Here is what I need but its under win32

http://msdn.microsoft.com/en-us/library/ms686247.aspx

________________________________________
De : Randy Dunlap [rdunlap@xxxxxxxxxxxx]
Date d'envoi : 19 novembre 2008 23:55
À : Jonathan Lafontaine
Cc : util-linux-ng@xxxxxxxxxxxxxxx
Objet : Re:

On Wed, 19 Nov 2008 14:58:34 -0500 Jonathan Lafontaine wrote:

> would like to know is its possible by programmation to do samething as the tool
>
> taskset
>
> can set affinity of process and or threads
>
> any example?
> --

One or more of these should do it (at least for processes):

> apropos affinity
CPU_CLR (3)          - set and get a process's CPU affinity mask
CPU_ISSET (3)        - set and get a process's CPU affinity mask
CPU_SET (3)          - set and get a process's CPU affinity mask
CPU_ZERO (3)         - set and get a process's CPU affinity mask
sched_getaffinity (2) - set and get a process's CPU affinity mask
sched_getaffinity (3) [CPU_SET] - set and get a process's CPU affinity mask
sched_setaffinity (2) - set and get a process's CPU affinity mask
sched_setaffinity (3) [CPU_SET] - set and get a process's CPU affinity mask
taskset (1)          - retrieve or set a processes's CPU affinity


---
~Randy

--

This message has been verified by LastSpam (http://www.lastspam.com) eMail security service, provided by SoluLAN
Ce courriel a ete verifie par le service de securite pour courriels LastSpam (http://www.lastspam.com), fourni par SoluLAN (http://www.solulan.com)
www.solulan.com

--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux