You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- 39+1 I hate when all people can say is "Don't do that". There may be reasons beyond what people understand of a problem, and yet they treat the asker as if he's just new to this stuff and doesn't know anything. By the way Your code in C# is what I've been looking for and yes, I am developing a background service - according to other answers I should kill the users' CPUs with it.Przemysław Wrzesiński– Przemysław Wrzesiński2015-07-14 07:56:11 +00:00Commented Jul 14, 2015 at 7:56
- 4@PrzemysławWrzesiński you are right 100%. I have come across a network appliance situation where it logs streams AT SCALE and a periodic process for extracting portions is not allowed to take more than 10% of the CPU, ever, because the primary function is to capture the massive streams and the CPU is being taxed and hardware engineering can't do anymore than they are doing. So this is a very valid question.Snowy– Snowy2015-07-24 23:29:01 +00:00Commented Jul 24, 2015 at 23:29
- 6" it still annoys me that the accepted answer criticizes the question rather than answering it" --- I think likewise. People should answer rather than asking why the hell someone asked it. By the way I have a very similar app that makes cpu shoot 95% and i want it to run longer but must not spike CPU to 95% every time.Simple Fellow– Simple Fellow2015-10-25 10:56:08 +00:00Commented Oct 25, 2015 at 10:56
- 1It seems that this approach is problematic. It seems that a Stopwatch object measures the elapsed time, not only the time that is consumed by the current thread.zhoudu– zhoudu2017-03-12 10:56:42 +00:00Commented Mar 12, 2017 at 10:56
- 1Anyway, until we have better ways to signal preferences to CPU frequency governors, frequent artificial sleeps are probably a good idea. This also works on Linux to keep the frequency low: Why does this delay-loop start to run faster after several iterations with no sleep?Peter Cordes– Peter Cordes2018-05-08 07:26:52 +00:00Commented May 8, 2018 at 7:26
| Show 4 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. python-3.x), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-cs