[fpc-pascal] GetAffinity\SetAffinity

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Fri Jan 21 13:31:16 CET 2011



See
   man sched_setaffinity
for the call to do this.

Free Pascal does not have this call predefined, but you can make this call.


Using the do_syscall you should be able to set up the call to the kernel.

Something like:

do_Syscall(syscall_nr_sched_setaffinity,fpgetpid,setsize, at cpu_set);

Michael.

On Fri, 21 Jan 2011, Alexey Voychehovich wrote:

> Good day.
> There is a need to establish some process affinity using free pascal
> and ubuntu. Do not tell that on this occasion you can read?
>
> Thanks in advance
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>



More information about the fpc-pascal mailing list