将 Windows 10 中的特定进程更改为高优先级
Change Specific Process in Windows 10 to High Priority?
有没有办法在Java中做到这一点?否则,用另一种语言做到这一点的最佳方式是什么;C++Windows API?
我只想在每次运行程序时将另一个正在运行的应用程序的一个特定进程更改为"高"。是的,我知道我可以使用Windows快捷方式来做到这一点,但我想在代码中实现它,最好是Java。
你在线程类
中有一个setPriority()
方法检查这个
public static void main(String args[]) {
Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
// Your main code.
}
对于 c++,此 Windows API 调用 setPriorityClass 允许您更改进程优先级。
编辑:
如果要在 windows 10 中更改程序的优先级,请查看本文
相关文章:
- boost::进程间消息队列引发错误
- 在进程中对同一管道进行读取和写入时C++管道出现问题
- 是否可以通过C++扩展强制多个python进程共享同一内存
- C++优先级队列,按对象的唯一指针的特定方法升序排列
- IPC使用多个管道和分支进程来运行Python程序
- 按对象的特定方法按升序排列的C++优先级队列
- 将更高的优先级设置为 boost::asio 线程处理进程
- 在 Windows/C++ 上使用多进程应用程序的高精度定时操作
- 提高詹金斯进程优先级?
- 进程中线程的最高优先级是多少?
- 类构造函数比"="运算符具有更高的优先级?
- 将 Windows 10 中的特定进程更改为高优先级
- boost ::变体 - 为什么模板参数比const字符串参数具有更高的优先级
- Mac 上高带宽数据流最有效的进程间通信方法是什么?
- 从正在运行的进程设置线程优先级
- 具有更高优先级的WM_TIMER
- 在Windows中,如何使用C++或C#在属于另一进程的窗口中获取高亮显示的文本
- 如何循环矩阵使对角线上的数字具有很高的优先级
- 当多个高优先级线程在多个内核上运行时,Linux内核没有响应
- 如何挂钩具有更高完整性级别的进程