限制核心使用PyCharm [英] Restrict core usages PyCharm

查看:124
本文介绍了限制核心使用PyCharm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有用PyCharm编写的程序.该程序应该运行一周左右,并且非常需要处理器.因此,当我运行它时,由于笔记本变得非常笨拙,我几乎不用了它的笔记本.

I have this program that I've written in PyCharm. This program should be running for a week or so, and it is very processor-needy. So when I run it I pretty much have no use of my notebook, as it becomes very laggy.

有没有办法告诉PyCharm使用我的前三个内核,而将一个留给其他程序使用,以便它们可以正常运行?

Is there a way to somehow tell PyCharm to use first three of my cores and leave one for other programms so they can operate normally?

推荐答案

  1. 进入任务管理器

  1. Go into task manager

找到正在运行的任务(它可能不是pycharm主窗口)

Find the running task (it probably won't be the main pycharm window)

右键单击并选择转到详细信息"

Right click and select "go to details"

右键单击详细信息,然后单击设置相似性"

Right click on the details and click "set affinity"

选择希望程序使用的任何内核

Select whatever cores you wish the program to use

或者,您可以使用设置优先级"子菜单并将其设置为低于正常".默认情况下,所有其他进程都是普通优先级,因此它不应干扰任何事情,但仍会使用任何其他可用的处理能力.您可以通过长时间安装或自动Windows更新来做同样的事情,以免它们拖慢您的速度.

Alternatively you can use the "set priority" sub-menu and set it to "below normal". All other processes are normal priority by default, so it shouldn't interfere with anything, but still use any other available processing power. You can do the same thing with long installations or automatic windows updates so they don't slow you down.

我还应该注意,重新启动程序后,这两个选择都将被重置.此外,如果您使用的是Windows 7,则无需转到详细信息".一切都会出现在该过程的上下文菜单中.

I should also note that both of these selections will be reset upon restarting the program. Additionally, if you are using windows 7, you don't need to "go to details". Everything will appear in the context menu for the process.

不幸的是,我不知道如何在pycharm中做到这一点.

Unfortunately, I don't know how to do this in pycharm.

这篇关于限制核心使用PyCharm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆