RE: Setting CPU Affinity

Discussion in 'Python' started by Laughlin, Joseph V, May 4, 2004.


  1. > From: Mark Hammond [mailto:]
    > Sent: Tuesday, May 04, 2004 4:52 AM
    > To:
    > Subject: Re: Setting CPU Affinity
    >
    >
    > Laughlin, Joseph V wrote:
    > > When I spawn a new process via spawnv(), how can I set the CPU
    > > affinity for the newly-spawned process with python?

    >
    > The pywin32 (win32all) extensions include the win32 functions
    > for this
    > in the win32process module. You should be able to:
    > * use spawmv to get the new process ID.
    > * use win32process.OpenProcess() to get a process handle.
    > * use win32process.SetProcessAffinityMask() to set the affinity.
    >
    > Mark.
    > --
    > http://mail.python.org/mailman/listinfo/python-list
    >


    What about on a unix/linux platform?

    Thanks,
    Joe
     
    Laughlin, Joseph V, May 4, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Krishnan

    Processor affinity - HELP

    Krishnan, Jun 8, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    365
    Krishnan
    Jun 8, 2005
  2. SevDer
    Replies:
    1
    Views:
    527
    Steven Cheng[MSFT]
    Jan 30, 2006
  3. Laughlin, Joseph V

    Setting CPU Affinity

    Laughlin, Joseph V, May 3, 2004, in forum: Python
    Replies:
    1
    Views:
    709
    Mark Hammond
    May 4, 2004
  4. Replies:
    3
    Views:
    11,329
  5. Replies:
    0
    Views:
    160
Loading...

Share This Page