Link to home
Start Free TrialLog in
Avatar of ba272
ba272

asked on

Multi-threading and minimizing underutilization of the processor

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.

Thanks,
RA
ASKER CERTIFIED SOLUTION
Avatar of Thandava Vallepalli
Thandava Vallepalli
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ba272
ba272

ASKER

Thanks for the input.  But what priority would the user interface get?  If a thread with infinite amount of work has a higher priority, what is it that eventually gives the control to a lower priority thread.  Relative accrued wait time?

Thanks.