Click here to Skip to main content
16,010,334 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaltime-consuming thread Pin
RichardWdy23-Mar-02 4:28
RichardWdy23-Mar-02 4:28 
GeneralRe: time-consuming thread Pin
Christopher Duncan23-Mar-02 4:41
Christopher Duncan23-Mar-02 4:41 
GeneralRe: time-consuming thread Pin
RichardWdy23-Mar-02 4:52
RichardWdy23-Mar-02 4:52 
GeneralRe: time-consuming thread Pin
Joaquín M López Muñoz23-Mar-02 4:55
Joaquín M López Muñoz23-Mar-02 4:55 
GeneralRe: time-consuming thread Pin
Christopher Duncan23-Mar-02 4:58
Christopher Duncan23-Mar-02 4:58 
GeneralRe: time-consuming thread Pin
RichardWdy24-Mar-02 0:51
RichardWdy24-Mar-02 0:51 
GeneralRe: time-consuming thread Pin
Christopher Duncan24-Mar-02 6:37
Christopher Duncan24-Mar-02 6:37 
GeneralRe: time-consuming thread Pin
Tim Smith24-Mar-02 6:47
Tim Smith24-Mar-02 6:47 
Like Chris said, just set the threads priority low. IMHO, there is little point in playing games with Sleep. Just set the priority of the thread low and let the OS do it's job. If nothing else requires CPU, the math thread will get 100% of CPU which is exactly what you want. There is no point sleeping the thread when nothing else needs the CPU. However, since the thread has a lower priority, if pratically any other thread requires the CPU, they will get it.

Tim Smith

I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
GeneralDLL Pin
Stan the man23-Mar-02 4:10
Stan the man23-Mar-02 4:10 
GeneralRe: DLL Pin
Joaquín M López Muñoz23-Mar-02 4:50
Joaquín M López Muñoz23-Mar-02 4:50 
QuestionHow to know if my IP is accessible from outside? Pin
Rickard Andersson2023-Mar-02 3:07
Rickard Andersson2023-Mar-02 3:07 
AnswerRe: How to know if my IP is accessible from outside? Pin
Nish Nishant23-Mar-02 3:26
sitebuilderNish Nishant23-Mar-02 3:26 
AnswerRe: How to know if my IP is accessible from outside? Pin
Josh Knox (disabled)23-Mar-02 4:03
Josh Knox (disabled)23-Mar-02 4:03 
AnswerRe: How to know if my IP is accessible from outside? Pin
Anders Molin23-Mar-02 4:05
professionalAnders Molin23-Mar-02 4:05 
QuestionWhat are callback functions Pin
23-Mar-02 2:35
suss23-Mar-02 2:35 
AnswerRe: What are callback functions Pin
Nish Nishant23-Mar-02 2:58
sitebuilderNish Nishant23-Mar-02 2:58 
Generalright to left layout Pin
Drawil23-Mar-02 0:46
Drawil23-Mar-02 0:46 
GeneralRe: right to left layout Pin
moliate23-Mar-02 1:06
moliate23-Mar-02 1:06 
GeneralRe: right to left layout Pin
Drawil23-Mar-02 1:23
Drawil23-Mar-02 1:23 
GeneralRe: right to left layout Pin
moliate23-Mar-02 4:55
moliate23-Mar-02 4:55 
GeneralRe: right to left layout Pin
23-Mar-02 2:11
suss23-Mar-02 2:11 
GeneralRe: right to left layout Pin
24-Mar-02 9:35
suss24-Mar-02 9:35 
Generalsetfocus Pin
23-Mar-02 0:25
suss23-Mar-02 0:25 
GeneralRe: setfocus Pin
Nish Nishant23-Mar-02 2:48
sitebuilderNish Nishant23-Mar-02 2:48 
QuestionDAO problem using "%"or bug ? Pin
Wizard_0122-Mar-02 23:27
Wizard_0122-Mar-02 23:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.