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 -- 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