I want to write a program to keep my CPU Usage to 50%.How can I do it?
I just can't find the API I need to use.Anybody can help?
(PS: My OS is WINXP)
Ryen_Lee 0 Newbie Poster
Recommended Answers
Jump to PostI suppose that something is either Sleep() (MS-Windows) or sleep() (*nix) which will cause your program to get very little CPU time.
Jump to Postwait in a socket, write a client which pumps data faster than your server can process.
I don't think that is possible because I THINK the socket libraries will slow everything down to prevent that from happening.
All 6 Replies
Salem 5,265 Posting Sage

iamthwee
Ryen_Lee 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
ithelp 757 Posting Virtuoso Banned
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.