[fpc-pascal] Re: GetAffinity\SetAffinity
Brian
vmst at golden.net
Thu Nov 21 20:30:36 CET 2013
Attached is a simple test program with two threads. When the threads run ,
one displays '+' and the other displays '2'.
If both threads run on the same core , the threads work , but if the threads
are set to different cores , it generates a GP fault.
If anyone is interested , download the code . It was tested on Ubuntu
12.04lts , but should be portable .
Would be interested hear any results to confirm it is not a hardware issue
on this PC.
coret.pas
<http://free-pascal-general.1045716.n5.nabble.com/file/n5717544/coret.pas>
test_threads.pas
<http://free-pascal-general.1045716.n5.nabble.com/file/n5717544/test_threads.pas>
Regards
Brian
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/GetAffinity-SetAffinity-tp3351231p5717544.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal
mailing list