请编写一个耗尽我所有 CPU 的程序(Windows)
我知道这听起来像是一个奇怪的问题,但我这样做背后有一个合乎逻辑的解释,很长的故事。
那么有人可以提供一个程序,它会尽可能多地消耗我的CPU吗,最好是.exe文件
I know it might sound like an odd question, but theres a logical explanation behind me doing so, very long story.
So could someone provide a program which will eat up as much of my CPU as possible please, preferably .exe files please
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您是否考虑过使用叉子炸弹?
Have you considered a fork bomb?
请提供长篇故事 - 我需要一些远离实际开发的注意力。
创建尽可能多的“while true do;”线程就像有核心一样。将它们提升为实时优先级。让它们运行。站在电源开关旁边。
EXE文件?你真是个小混蛋! DIY。
路数,
马丁
Please provide the long story - I need a bit of diversion from real development.
Create as many 'while true do;' threads as there are cores. Raise them to real-time priority. Set them running. Stand by the power switch.
EXE? You're 'avin a larrf! DIY.
Rds,
Martin
您可以在 Windows 上编译以下 C 代码并运行它以耗尽所有 CPU。
https://www.electronproton.com/cpu-mem-load-test/< /a>
请注意,上面的仅占用单核。
如果您想耗尽系统中的所有多核,请使用 OpenMP 线程程序。您可以从下面的链接下载它。
https://www. Electronproton.com/multi-core -CPU和内存负载测试/
You can compile the following C code on Windows and run it to eat up all CPU.
https://www.electronproton.com/cpu-mem-load-test/
Note that the above one only eats up single core.
If you want to eat up all multi-cores in your system then use OpenMP threaded program. You can download it from the below link.
https://www.electronproton.com/multi-core-cpu-and-memory-load-test/