Multi-threading and minimizing underutilization of the processor
Posted on 2005-03-01
I'm about to add a second thread to my Windows app. in order to process larger jobs in the background, while providing instant user interface response time in the GUI. But I'd like to have a maximal amount of processor cycles available to work on that larger job, to bring it to completion sooner rather than later.
My question is, can I allocate 80% (or so) or the processor's time to the larger process, since most of the time spent waiting for user interactions will be time lost? Or does the ratio come implicitly by design?
I'd love to hear your reply.