Mark ,

Thanks for the tips and info.

There are two reasons for running threads on specific cores :

1) The possible need for a tight loop for receiving serial data.

2) The program is serial in nature receiving data, does not use X11 ,
controls the mouse and keyboard using libusb , and writes directly to the
graphics card frame buffer (very fast). I have found that when multicore is
enabled in the BIOS , or if I set the process to use more than one core with
sched_setaffinit() , it appears the Linux scheduler is causing a problem and
somehow mucks up some of the graphics when the data load increases , as the
scheduler then starts to try and spread the load between the two cores. 

If only one core is used everything works fine.

Regards
Brian



--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/GetAffinity-SetAffinity-tp3351231p5717543.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