You are not logged in.
Pages: 1
For my honors thesis I'm experimenting with creating an object oriented programming language where objects are automatically assigned to cores on a multicore CPU. Though I'm familiar with the general hardware structure of multicore CPUs I don't know how the software interface works. In particular, I want to know if it's possible to poll a CPU for information about it's cores and then assign a process thread to a particular core? I've done some reading and it seems that in general the OS scheduler handles this. Is there someway around this?
Thanks,
Basu
The Bytebaker -- Computer science is not a science and it's not about computers
Check out my open source software at Github
Offline
> assign a process thread to a particular core
I'm not sure if you can do this in Linux.
Offline
man sched_setaffinity will tell you how to bind a task to a set of processors/cores/threads (in the hyperthreading sense). See also man taskset.
/proc/cpuinfo will tell you which processor ids correspond to which actual processors and cores and everything else. Not sure if there's a more programmatic way to glean this knowledge.
Offline
Pages: 1