force a program to use only 1 core,how can i do?


  1. Posts : 476
    windows 7 ultimate 64bit
       #1

    force a program to use only 1 core,how can i do?


    Hi
    how can i do to force a program to use only 1 core ?

    i know i can do it with task manager ,but it's boring run the program and go in the task manager and click on the program and set only 1 core


    is there a way to force w7 to let a program use only 1 core?


    thanks
      My Computer


  2. Posts : 28,845
    Win 8 Release candidate 8400
       #2

    drugo said:
    Hi
    how can i do to force a program to use only 1 core ?

    i know i can do it with task manager ,but it's boring run the program and go in the task manager and click on the program and set only 1 core


    is there a way to force w7 to let a program use only 1 core?


    thanks
    Drugo

    There are two ways. First when the software is developed it can be written that way and second using Program manager. why would you want to use only one core any way? windows is much more efficient when run equality on all cores.


    Ken
      My Computer


  3. Posts : 476
    windows 7 ultimate 64bit
    Thread Starter
       #3

    zigzag3143 said:
    drugo said:
    Hi
    how can i do to force a program to use only 1 core ?

    i know i can do it with task manager ,but it's boring run the program and go in the task manager and click on the program and set only 1 core


    is there a way to force w7 to let a program use only 1 core?


    thanks
    Drugo

    There are two ways. First when the software is developed it can be written that way and second using Program manager. why would you want to use only one core any way? windows is much more efficient when run equality on all cores.


    Ken
    because i encoded a video file , and the encoder overload my cpu , it pushes to 100% all my 4 cpu
      My Computer


  4. Posts : 5,056
    Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
       #4
      My Computer

  5.    #5

    find the process in task manager, right click on it, select set affinity, choose which core you want it to use.. only way I know how, though I'm baffled as to why you would want to do that.

    Processor Affinity - Set for Applications

    and

    Processor Affinity - Add Set Affinity to Context Menu
    Last edited by Brink; 13 Jun 2010 at 11:01. Reason: added links
      My Computer


  6. Posts : 2
    Windows 7 Professional x64
       #6

    Yes, you can specify the affinity


    I had the same need (in my case for Nero Vision 9). The program would crash about half the time unless I restricted it to one core. What I did was to change the target command to force a single core whenever I would run the program.

    Go to the program location and right click on it, then choose "properties". In the "Target" field, add

    "C:\Windows\System32\cmd.exe /C start "" /affinity 2 "

    (omit the quotes) in front of what is already there for the program. Your original target will have quotes around it already,... leave them there.

    Note: I want to use CPU 1, so I specified "2". You may specify which CPU to use by substituting for the 2
    1 = use CPU 0
    2 = use CPU 1
    3 = use CPU 1 and 0

    My system is a Core 2 duo and it works like a charm. There are probably other affinity codes for those of you with more cores, but I'd only be guessing at what they are.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:36.
Find Us