Limit CPU usable by specific program?

Abstract: Restrict a program's CPU usage in Windows 10 by lowering its process priority or setting CPU affinity to specific cores.

Created: 2026-10-05 by

Windows 10 does not offer a native "CPU limit" feature in Task Manager, but you can effectively restrict a program's processing power by lowering its process priority or restricting it to specific CPU cores. These methods prevent resource-hungry applications like Adobe Flash from monopolizing system resources, ensuring smoother performance for other tasks without requiring third-party software.

Understanding Windows Process Scheduling

When you run an application on Windows, the operating system uses a scheduler to decide which processes get access to the Central Processing Unit (CPU) at any given moment. By default, most applications run with Normal priority, meaning they compete fairly with other active programs for CPU time. However, this default behavior allows a single poorly optimized or intensive program to consume nearly 100% of your CPU cycles, causing system-wide lag and unresponsiveness. It is important to clarify that unlike Linux systems, which have robust tools like cgroups or cpulimit, Windows lacks a built-in interface to set a strict percentage cap (e.g., "limit Chrome to 50% CPU") directly through the graphical user interface. The previous misconception often arises from confusion with SQL Server's Resource Governor or third-party utilities like ThrottleStop or Process Lasso. Since these advanced features are not available natively in standard Windows 10 installations, we must rely on the scheduling mechanisms provided by the OS kernel. The two primary native methods to achieve a similar effect are adjusting the Process Priority and modifying CPU Affinity. Both approaches alter how the Windows Scheduler interacts with the target application, effectively reducing its impact on overall system performance.

Method 1: Lowering Process Priority

Lowering the priority of a process tells the Windows Scheduler to give it less attention when multiple programs are competing for CPU time. This does not stop the program from using the CPU if no one else is running, but it ensures that critical system processes and your active applications take precedence. This is particularly useful for background tasks or applications that are not currently in focus. To adjust the priority of a specific program, follow these steps:
  1. Open Task Manager: Press Ctrl + Shift + Esc simultaneously. If the window appears minimal, click More details at the bottom left to expand the full view.
  2. Navigate to Details: Click on the Details tab at the top of the window. This view lists all running processes in a flat list, making it easier to find specific executables.
  3. Locate the Process: Find the executable file for the program you wish to limit. For example, if you are trying to limit Adobe Flash, look for flashplayer.exe or iexplore.exe depending on how it is launched.
  4. Adjust Priority: Right-click the process name and select Set priority. You will see options ranging from Realtime to Low.
  5. Select Low: Choose Low from the menu. This immediately reduces the amount of CPU time the scheduler allocates to this process relative to others.
Note that this setting is temporary. Every time you restart the computer or the application, the priority will revert to Normal. To make this persistent, you would need to create a shortcut that launches the application with specific parameters, though Windows does not support passing priority flags directly via standard shortcuts for all applications.

Method 2: Restricting CPU Affinity

CPU Affinity is a more aggressive method than priority. Instead of just asking the scheduler to be nicer to other programs, affinity forces the operating system to only allow the specified process to run on a subset of the available CPU cores. If you have a quad-core processor and set affinity to use only Core 0 and Core 1, the program cannot utilize Cores 2 and 3, regardless of how much capacity is free. This effectively halves the maximum potential throughput of that application. This method is highly effective for limiting multithreaded applications that scale well across many cores. However, it should be used cautiously with single-threaded applications, as it may significantly degrade their performance without providing much benefit to system stability. To modify CPU Affinity:
  1. Open Task Manager: Use Ctrl + Shift + Esc and go to the Details tab.
  2. Right-click the Process: Select the target executable.
  3. Select Set Affinity: Click on Set affinity from the context menu.
  4. Deselect Cores: In the dialog box that appears, you will see checkboxes for each logical processor (Processor 0, Processor 1, etc.). Uncheck the boxes for the cores you want to exclude. For example, if you have four cores, leaving only Processor 0 checked will restrict the app to a single core.
  5. Confirm Changes: Click OK to apply the changes.
Like priority settings, affinity changes are not permanent across reboots. You must reapply them every time the application starts.

Why Native Tools Are Limited

Users often search for a simple slider or input field to type in a CPU percentage limit, expecting a feature akin to Docker container limits or Kubernetes pod specifications. Windows was designed primarily for desktop usability rather than server-grade resource isolation for individual end-user applications. While technologies like Hyper-V containers or Group Policy Preferences exist for enterprise environments, they are overkill for managing a single browser plugin or media player. For users who require granular control, such as capping CPU usage at exactly 30%, third-party software is necessary. Tools like Process Lasso or cpulimit (via WSL) provide these advanced capabilities. However, for most home users, combining low priority with restricted affinity provides sufficient relief for system stuttering caused by runaway processes. If you are experiencing issues where Task Manager itself fails to show high CPU usage, it may indicate a deeper system monitoring issue rather than a need for limiting. Understanding the difference between a hidden process and a resource hog is crucial before applying these restrictions.

Frequently Asked Questions

Will lowering priority cause my program to crash?

No, changing the priority to Low will not cause an application to crash. It simply makes the program wait longer for CPU cycles if other programs are demanding resources. The application will still function normally, but it may respond slightly slower during heavy system load.

Does CPU Affinity work on laptops with hyperthreading?

Yes, but you must treat each logical processor as a separate core. If your laptop has 4 physical cores with Hyperthreading, Task Manager will show 8 processors. Setting affinity to only even-numbered processors might leave odd-numbered ones idle, potentially wasting energy without improving performance. Test carefully to ensure the application runs smoothly on the selected subset.

Can I make these settings permanent without third-party tools?

Not directly through the standard GUI. Windows resets priority and affinity upon reboot. You can create a batch script that opens Task Manager or uses PowerShell commands to adjust settings after launch, but there is no native checkbox in application properties to save these preferences permanently.

What is the difference between Priority and Affinity?

Priority determines the order in which the scheduler gives CPU time to different processes; it is a relative competition. Affinity determines which physical hardware cores a process is allowed to use; it is a hard constraint. Priority affects fairness, while Affinity affects maximum capacity.

Is it safe to disable all cores except one for a game?

It is generally not recommended for modern games. Most contemporary titles are heavily multi-threaded and rely on multiple cores for physics, AI, and rendering. Forcing a game to a single core can lead to severe frame rate drops and stuttering, often negating any benefit gained from freeing up other cores for background tasks.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More