Request  for additional info :

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


The function do_SysCall() Arg 4 expects longint not a pointer but even when
typecast do_SysyCall() doesn't appear to work.

... a good description here.

http://www.ibm.com/developerworks/linux/library/l-affinity/index.html
> Take charge of processor affinity
>
> Why (three reasons) and how to use hard (versus soft) CPU affinity
> Eli Dow, Software Engineer, IBM Linux Test and Integration Center
>
> Summary:  Knowing a little bit about how the Linux® 2.6 scheduler treats
> CPU affinity can help you design better userspace applications. Soft
> affinity means that processes do not frequently migrate between
> processors, whereas hard affinity means that processes run on processors
> you specify. This article describes current affinity mechanisms, explains
> why and how to use hard affinity, and provides sample code showing you how
> to use the available functionality.

Any suggestions
Thanks in advance
Brian




--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/GetAffinity-SetAffinity-tp3351231p5717507.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to