Click here to Skip to main content
15,913,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Threading error Pin
Mark Salsbery8-Oct-08 6:35
Mark Salsbery8-Oct-08 6:35 
AnswerRe: Threading error Pin
sriram6513-Oct-08 3:01
sriram6513-Oct-08 3:01 
GeneralRe: Threading error Pin
Mark Salsbery13-Oct-08 6:19
Mark Salsbery13-Oct-08 6:19 
GeneralRe: Threading error Pin
sriram6515-Oct-08 2:36
sriram6515-Oct-08 2:36 
GeneralRe: Threading error Pin
Mark Salsbery15-Oct-08 4:40
Mark Salsbery15-Oct-08 4:40 
GeneralRe: Threading error Pin
sriram6518-Dec-08 2:59
sriram6518-Dec-08 2:59 
Questioniocompletionport (IOCP) and threads Pin
swjam7-Oct-08 2:49
swjam7-Oct-08 2:49 
AnswerRe: iocompletionport (IOCP) and threads Pin
Mark Salsbery7-Oct-08 4:07
Mark Salsbery7-Oct-08 4:07 
swjam wrote:
more than one device can be associated to an IOCP


True (more than one handle - not necessarily device).

swjam wrote:
each device would have its own thread pool


False. The number of threads in the pool is determined by how many threads
are waiting on the completion port with GetQueuedCompletionStatus().

swjam wrote:
each thread pool is associated to a particular function. which is why ANY of the threads (although usually the last in) in the pool can be awakened each time there is a new entry in the completion queue.


False.

swjam wrote:
somehow IOCP knows which thread in a pool to wake up depending on which IOCP-associated device has a completed IO request.


False. You can make no assumptions on which thread waiting in GetQueuedCompletionStatus()
will "wake up", unless you only have one thread in the pool.


Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: iocompletionport (IOCP) and threads Pin
led mike7-Oct-08 4:17
led mike7-Oct-08 4:17 
GeneralRe: iocompletionport (IOCP) and threads Pin
Mark Salsbery7-Oct-08 4:23
Mark Salsbery7-Oct-08 4:23 
GeneralRe: iocompletionport (IOCP) and threads Pin
swjam7-Oct-08 4:37
swjam7-Oct-08 4:37 
GeneralRe: iocompletionport (IOCP) and threads Pin
Mark Salsbery7-Oct-08 4:53
Mark Salsbery7-Oct-08 4:53 
QuestionWinObj Question/Documentation ??? Pin
ForNow7-Oct-08 2:12
ForNow7-Oct-08 2:12 
QuestionConvert Integer to CString Pin
phanindra varma7-Oct-08 1:06
phanindra varma7-Oct-08 1:06 
AnswerRe: Convert Integer to CString Pin
Michael Schubert7-Oct-08 1:08
Michael Schubert7-Oct-08 1:08 
AnswerRe: Convert Integer to CString Pin
Rajesh R Subramanian7-Oct-08 1:36
professionalRajesh R Subramanian7-Oct-08 1:36 
GeneralRe: Convert Integer to CString Pin
Michael Schubert7-Oct-08 1:39
Michael Schubert7-Oct-08 1:39 
GeneralRe: Convert Integer to CString Pin
phanindra varma7-Oct-08 4:18
phanindra varma7-Oct-08 4:18 
GeneralRe: Convert Integer to CString Pin
Rajesh R Subramanian7-Oct-08 5:55
professionalRajesh R Subramanian7-Oct-08 5:55 
GeneralRe: Convert Integer to CString Pin
phanindra varma18-Oct-08 4:04
phanindra varma18-Oct-08 4:04 
GeneralRe: Convert Integer to CString Pin
vijay_aroli7-Oct-08 6:26
vijay_aroli7-Oct-08 6:26 
AnswerRe: Convert Integer to CString Pin
David Crow7-Oct-08 3:36
David Crow7-Oct-08 3:36 
GeneralRe: Convert Integer to CString Pin
Michael Schubert7-Oct-08 3:49
Michael Schubert7-Oct-08 3:49 
GeneralRe: Convert Integer to CString Pin
Rajesh R Subramanian7-Oct-08 5:10
professionalRajesh R Subramanian7-Oct-08 5:10 
GeneralRe: Convert Integer to CString Pin
ThatsAlok7-Oct-08 19:27
ThatsAlok7-Oct-08 19: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.