Click here to Skip to main content
15,891,943 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DiskQuota on remote machine Pin
David Crow1-Nov-04 4:08
David Crow1-Nov-04 4:08 
GeneralRe: DiskQuota on remote machine Pin
std77021-Nov-04 5:01
std77021-Nov-04 5:01 
QuestionHow do I add chart using Visual C++ Pin
pubududilena1-Nov-04 0:52
pubududilena1-Nov-04 0:52 
AnswerRe: How do I add chart using Visual C++ Pin
Selvam R1-Nov-04 3:19
professionalSelvam R1-Nov-04 3:19 
GeneralUse Clipboard in MFC Application Pin
sweep1231-Nov-04 0:36
sweep1231-Nov-04 0:36 
GeneralSystem Path Pin
Dave_Sullivan3331-Oct-04 23:44
Dave_Sullivan3331-Oct-04 23:44 
GeneralRe: System Path Pin
Dominik Reichl1-Nov-04 4:32
Dominik Reichl1-Nov-04 4:32 
QuestionWho gets the Mutex? Pin
Malcolm Smart31-Oct-04 23:30
Malcolm Smart31-Oct-04 23:30 
Hi
I have a threaded app which can have many threads running (number not known until runtime). Each thread needs to use shared resource so I lock with WaitOnSingleObject and pass a handle to a mutex. The handle is a global variable assigned with CreateMutex so all threads have access to it and this method works fine.

Whilst one thread has access to the shared resource, other threads are sitting INFINITE at the WaitOnSingleObject. Do these threads get access on a first come first served basis or is there a possibility that a thread could constantly be shoved to the back of the queue by others threads pushing in?

Which leads me onto a second question - can you give a thread higher priority (easily) ?

Cheers

Angel1058

*********************************************
The sooner you fall behind, the longer you have to catch up.
AnswerRe: Who gets the Mutex? Pin
Mike Beckerleg1-Nov-04 1:17
Mike Beckerleg1-Nov-04 1:17 
AnswerRe: Who gets the Mutex? Pin
peterchen1-Nov-04 2:07
peterchen1-Nov-04 2:07 
GeneralSDK programing Pin
abu_peers31-Oct-04 21:56
abu_peers31-Oct-04 21:56 
GeneralRe: SDK programing Pin
Selvam R1-Nov-04 1:54
professionalSelvam R1-Nov-04 1:54 
GeneralRegistering a file type Pin
KRowe31-Oct-04 21:32
KRowe31-Oct-04 21:32 
GeneralRe: Registering a file type Pin
David Crow1-Nov-04 4:10
David Crow1-Nov-04 4:10 
GeneralRe: Registering a file type Pin
KRowe1-Nov-04 8:25
KRowe1-Nov-04 8:25 
GeneralRe: Registering a file type Pin
David Crow1-Nov-04 8:38
David Crow1-Nov-04 8:38 
GeneralRe: Registering a file type Pin
KRowe1-Nov-04 12:44
KRowe1-Nov-04 12:44 
GeneralRe: Registering a file type Pin
David Crow2-Nov-04 2:19
David Crow2-Nov-04 2:19 
GeneralRe: Registering a file type Pin
KRowe2-Nov-04 14:41
KRowe2-Nov-04 14:41 
GeneralRe: Registering a file type Pin
David Crow3-Nov-04 3:01
David Crow3-Nov-04 3:01 
QuestionHow to loop through window controls? Pin
Dragos1979200231-Oct-04 20:56
Dragos1979200231-Oct-04 20:56 
AnswerRe: How to loop through window controls? Pin
sps-itsec4631-Oct-04 21:42
sps-itsec4631-Oct-04 21:42 
GeneralRe: How to loop through window controls? Pin
Anonymous1-Nov-04 2:05
Anonymous1-Nov-04 2:05 
GeneralRe: How to loop through window controls? Pin
David Crow1-Nov-04 4:15
David Crow1-Nov-04 4:15 
GeneralRe: How to loop through window controls? Pin
sps-itsec461-Nov-04 4:26
sps-itsec461-Nov-04 4:26 

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.