Changes between Version 1 and Version 2 of WinMulticore


Ignore:
Timestamp:
Oct 25, 2019, 10:42:33 PM (5 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WinMulticore

    v1 v2  
    5656  e.g. to use all 256 cores.
    5757  For now, we'll assume that applications don't do this.
     58
     59It's not clear how (or even whether Windows) lets you specify the processor group
     60for a process, new or existing.
     61
     62This looks like it might work:
     63
     64https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setprocessaffinitymask
     65
     66One of the above docs says "The operating system initially assigns each process to
     67a single group in a round-robin manner across the groups in the system."
     68Does that mean there's no control in process creation?
     69
     70If processor group/affinity is inherited,
     71maybe the client can changes its group prior to creating the process?
     72
     73Can we create and use an "startup info" structure during process creation?
     74
     75https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-initializeprocthreadattributelist
     76
     77https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-updateprocthreadattribute
     78
     79https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessasusera
     80
     81