[fpc-pascal] GetAffinity\SetAffinity

Alexey Voychehovich ironwit at gmail.com
Fri Jan 21 13:55:52 CET 2011


Just a huge thank you:)

2011/1/21  <michael.vancanneyt at wisa.be>:
>
>
> 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
>>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>



-- 
Don`t drink and drive, smoke and fly!



More information about the fpc-pascal mailing list