Click here to Skip to main content
15,914,408 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: strcpy | strcat -> Errors Pin
kakan27-Nov-06 4:29
professionalkakan27-Nov-06 4:29 
QuestionChanging Menu Item's Font OR Bold Menu Items Pin
Andy Rama27-Nov-06 3:02
Andy Rama27-Nov-06 3:02 
AnswerRe: Changing Menu Item's Font OR Bold Menu Items Pin
Ing.Raiz8227-Nov-06 22:04
Ing.Raiz8227-Nov-06 22:04 
GeneralRe: Changing Menu Item's Font OR Bold Menu Items Pin
Andy Rama27-Nov-06 22:21
Andy Rama27-Nov-06 22:21 
QuestionProblem with CPropertySheet class Pin
spielehelfer27-Nov-06 2:27
spielehelfer27-Nov-06 2:27 
QuestionCImageList - Mask Pin
Ajay L D27-Nov-06 2:06
Ajay L D27-Nov-06 2:06 
QuestionHow to achive application load balancing in win32 application Pin
Hemant kulkarni27-Nov-06 2:04
Hemant kulkarni27-Nov-06 2:04 
AnswerRe: How to achive application load balancing in win32 application Pin
Scott Holt27-Nov-06 15:09
Scott Holt27-Nov-06 15:09 
I don't know that you can perform load-balancing as directly as you want to. However, the Windows API offers the 'CreateThread()' and 'SetThreadPriority()' functions, which allow you to create a thread and set its priority. For example, we can create a thread and set its priority to LOW, in which case the operating system will AUTOMATICALLY schedule the thread for execution in such a way that other, higher priority threads will receive more CPU cycles.

This is probably the best way to handle this anyway, as the operating system can allocate CPU cycles more efficiently that you could.

In your example, the disk writer thread would be given a low priority. As other tasks are invoked, such as user interface actions, Windows will automatically suspend the desk writer thread and give priority to the user interface.

Check out the documentation on 'CreateThread()' and 'setThreadPriority()' for a better description.

Scott
QuestionI am having one MFC application ,which is also having one ATL interface. Pin
chintuborntocode27-Nov-06 1:15
chintuborntocode27-Nov-06 1:15 
QuestionQuestion about CFileDialog .. Pin
Sakthiu27-Nov-06 1:15
Sakthiu27-Nov-06 1:15 
QuestionRe: Question about CFileDialog .. Pin
David Crow27-Nov-06 4:13
David Crow27-Nov-06 4:13 
QuestionTime taken by a funtion Pin
RockyJames27-Nov-06 0:52
RockyJames27-Nov-06 0:52 
AnswerRe: Time taken by a funtion Pin
Sakthiu27-Nov-06 1:10
Sakthiu27-Nov-06 1:10 
AnswerRe: Time taken by a funtion Pin
Maximilien27-Nov-06 2:32
Maximilien27-Nov-06 2:32 
Questionget process parent without using PROCESSENTRY32 Pin
samira forooghi27-Nov-06 0:25
samira forooghi27-Nov-06 0:25 
AnswerRe: get process parent without using PROCESSENTRY32 Pin
napalm2k28-Jun-10 14:31
napalm2k28-Jun-10 14:31 
Questionabout GridCtrl Pin
zizzzz27-Nov-06 0:04
zizzzz27-Nov-06 0:04 
AnswerRe: about GridCtrl Pin
Rage27-Nov-06 0:25
professionalRage27-Nov-06 0:25 
GeneralRe: about GridCtrl Pin
zizzzz27-Nov-06 1:19
zizzzz27-Nov-06 1:19 
QuestionHow can i remove menubar from Bitmap Pin
Neo Andreson26-Nov-06 23:05
Neo Andreson26-Nov-06 23:05 
AnswerRe: How can i remove menubar from Bitmap Pin
Cedric Moonen26-Nov-06 23:52
Cedric Moonen26-Nov-06 23:52 
QuestionHow can i edit Bitmap using application Pin
Neo Andreson26-Nov-06 23:02
Neo Andreson26-Nov-06 23:02 
QuestionConverting a UTF-8 Character in to its euuavalant Unicode Number Pin
Vineet Kumar26-Nov-06 22:44
Vineet Kumar26-Nov-06 22:44 
QuestionRe: Converting a UTF-8 Character in to its euuavalant Unicode Number Pin
CPallini26-Nov-06 23:23
mveCPallini26-Nov-06 23:23 
AnswerRe: Converting a UTF-8 Character in to its euuavalant Unicode Number Pin
spielehelfer27-Nov-06 3:58
spielehelfer27-Nov-06 3:58 

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.