使C程序使用更少的CPU. [英] Make a C program use less CPU.

查看:93
本文介绍了使C程序使用更少的CPU.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我想知道如何使我的C程序(可以说是一个键盘记录程序)使用更少的 CPU .

我特别要求您插入我的源代码中的某些 C代码,使我的程序甚至总是使用更少的CPU或只是休眠"一段时间.

请尽快回答.
感谢您的时间.

Hey guys,
i was wondering how can i make my C program (which let''s say is a Keylogger) use less CPU.

I ask you especially for some C code that i insert to my source code and make my program even always use less CPU or just "Sleep" it for a while.

Answer ASAP please.
Thanks for your time.

推荐答案

,为什么要这样?
我想不出想要这些功能的特定组合的许多合理原因...
And why would you want that?
I can''t think of many legitimate reasons for wanting that particular combination of features...


1.键盘记录程序绝对是恶意的.

2.按照定义,以键盘记录程序的方式"编写程序也是恶意的.您为什么不希望用户可以发现/管理您的程序?如果您想对用户隐藏程序,则出于某种原因要隐藏它.说实话,我不能提出对用户不涉及恶意意图的程序进行隐藏的理由.

这使您希望编写恶意软件.您在此站点上几乎找不到对此类事情的支持.我们都是专业人员,我们中的一些人致力于与恶意程序作斗争的产品.
1. Keyloggers are definitely malicious.

2. Writing a program ''in the manner of a keylogger'' is also by definition malicious. Why wouldn''t you want your program to be discoverable/managable by the user? If you are looking to hide your program from users, you want to hide it for a reason.. and honestly I can''t come up with a reason to hide a program from users that doesn''t involve malicious intent.

This makes you someone wishing to write malicious software. You''ll find little support for such things on this site. We are all professionals, some of us working on products that battle malicious programs.


没有C代码可以添加到程序中以减少CPU使用量.它会使用程序中指令执行所需的CPU.也许您需要更详细地解释您要解决的问题,只要它与黑客无关.
There is no C code that you can add to a program to use less CPU. It will use as much CPU as required by the execution of the instructions in the program. Maybe you need to explain in better detail exactly what problem you are trying to solve, just as long as it''s not about hacking.


这篇关于使C程序使用更少的CPU.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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