Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

execute thread on specific cpu

Name: Anonymous 2009-06-01 4:42

in a POSIX system, is there a way to execute a thread on a specific cpu and then also have this reported to the program, which cpu core it's executing on?

i'm doing this for an example application to demonstrate multi core and multi cpu systems for someone so this is nothing live or ENTERPRISE GRADE, just for fun and research.

i've seen some posts online about winlauncher being able to do this with affinity on windows. but what about posix systems? i'm using freebsd specifically.

Name: Anonymous 2009-06-01 9:43

haha yeah it is kinda pointless because i doubt they could set this better than the scheduler of the os already is doing it.

but i wanted to GET the affinity, and to do that i need to examine what sort of kernel code ps and top are using, too advanced for my little pass-the-time-at-work project.

thanks for all your help though, ur all enterprise grade faggots.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List