Better HN
topnewbestaskshowjobs
Log inSign up

jespersmith

1 karma · joined Jun 24, 2014 (12y ago) · 2 submissions

Submissions

comment 12y ago · link · parent

The source code is documented using Javadoc. We will upload the HTML version in the coming days.

comment 12y ago · link · parent

Hi, I'm the primary author of this library.

Setting the thread affinity of the current thread should be possible using the Affinity.setAffinity(int... cpuID) call. Underneath, it calls sched_settaffinity(0, sizeof(set), &set); I'm not sure if this set the affinity of the whole process or just the thread. I suspect it is the calling thread. Let us know if you happen to find that out.

Parsing the CPU layout of the machine you're running does not depend on any realtimethread code, and should work on any modern linux system.