[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Giving a particular application more CPU share

Posted on 1999-12-27
1
Medium Priority
?
195 Views
Last Modified: 2013-11-20
Hi !
I had developed a simulator application which is running fine except that it's a bit slow. I want to make it around 5 times faster then it is running now. So, is there a way so that this application can be given control of more CPU percentage or say a higher priority among all the applications on windows. The same application is also there on MACINTOSH systems and it runs very fast. I had observed that when this app. runs on mac it takesover all the mac resources and runs very fast.
I also want my application to do the same, as CWinApp is derived from CWinThread so I think that there might be some way out.

Thanx in advance,
Sun307
0
Comment
Question by:sun307
1 Comment
 
LVL 3

Accepted Solution

by:
akalmani earned 600 total points
ID: 2309279
HI sun307
   In the initinstance() do the following

  this->SetThreadPriority(THREAD_PRIORITY_TIME_CRITICAL);
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
There may be issues when you are trying to access Outlook or send & receive emails or due to Outlook crash which leads to corrupt or damaged PST file. To eliminate the corruption from your PST file, you need to repair the corrupt Outlook PST file. U…
Suggested Courses

613 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question