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,@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@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to