Gerhard Häring wrote: > This is of course OS-specific. On Linux, you can parse the proc > filesystem: > > >>> open("/proc/%i/stat" % os.getpid()).read().split()[39] > > You can use the "taskset" utility to query or set CPU affinity on Linux. > It is going to be in Linux (mainly) I was thinking about something like this:
import Module def process(self): print "I am running on processor", Module.cpu,"core", Module.core .... .... Checking the raskset right now...:) Thanks. -- http://mail.python.org/mailman/listinfo/python-list