Click here to Skip to main content
15,907,392 members
Home / Discussions / C#
   

C#

 
GeneralRe: dotNet MDI app and win32 child forms Pin
southperthman9-Jun-04 14:58
southperthman9-Jun-04 14:58 
GeneralRe: dotNet MDI app and win32 child forms Pin
Dave Kreskowiak10-Jun-04 4:21
mveDave Kreskowiak10-Jun-04 4:21 
GeneralRe: dotNet MDI app and win32 child forms Pin
southperthman11-Jun-04 6:17
southperthman11-Jun-04 6:17 
Questionhow do i make the value in text box permanent Pin
VIJAYPAPUPAGER9-Jun-04 3:22
VIJAYPAPUPAGER9-Jun-04 3:22 
AnswerRe: how do i make the value in text box permanent Pin
Guinness4Strength9-Jun-04 5:07
Guinness4Strength9-Jun-04 5:07 
GeneralRe: how do i make the value in text box permanent Pin
Heath Stewart9-Jun-04 5:59
protectorHeath Stewart9-Jun-04 5:59 
GeneralRe: how do i make the value in text box permanent Pin
surgeproof9-Jun-04 10:23
surgeproof9-Jun-04 10:23 
GeneralRe: how do i make the value in text box permanent Pin
Heath Stewart9-Jun-04 10:30
protectorHeath Stewart9-Jun-04 10:30 
AnswerRe: how do i make the value in text box permanent Pin
Heath Stewart9-Jun-04 6:04
protectorHeath Stewart9-Jun-04 6:04 
GeneralConversion of Unmanaged COM in VC++ to Managed VC++ or C# Pin
imran1899-Jun-04 2:49
imran1899-Jun-04 2:49 
GeneralRe: Conversion of Unmanaged COM in VC++ to Managed VC++ or C# Pin
Heath Stewart9-Jun-04 5:53
protectorHeath Stewart9-Jun-04 5:53 
GeneralIO completion ports and unexpected performance. Pin
Angelos Petropoulos9-Jun-04 2:36
Angelos Petropoulos9-Jun-04 2:36 
GeneralRe: IO completion ports and unexpected performance. Pin
scadaguy9-Jun-04 16:34
scadaguy9-Jun-04 16:34 
GeneralRe: IO completion ports and unexpected performance. Pin
Angelos Petropoulos10-Jun-04 1:48
Angelos Petropoulos10-Jun-04 1:48 
GeneralRe: IO completion ports and unexpected performance. Pin
scadaguy10-Jun-04 2:27
scadaguy10-Jun-04 2:27 
GeneralRe: IO completion ports and unexpected performance. Pin
Angelos Petropoulos10-Jun-04 13:25
Angelos Petropoulos10-Jun-04 13:25 
GeneralRe: IO completion ports and unexpected performance. Pin
scadaguy11-Jun-04 3:06
scadaguy11-Jun-04 3:06 
GeneralRe: IO completion ports and unexpected performance. Pin
Angelos Petropoulos11-Jun-04 3:27
Angelos Petropoulos11-Jun-04 3:27 
GeneralRe: IO completion ports and unexpected performance. Pin
k.mohan kumar28-Jan-09 20:11
k.mohan kumar28-Jan-09 20:11 
GeneralRe: IO completion ports and unexpected performance. Pin
Angelos Petropoulos11-Jun-04 1:44
Angelos Petropoulos11-Jun-04 1:44 
GeneralRe: IO completion ports and unexpected performance. Pin
scadaguy11-Jun-04 3:24
scadaguy11-Jun-04 3:24 
GeneralRe: IO completion ports and unexpected performance. Pin
Angelos Petropoulos11-Jun-04 3:37
Angelos Petropoulos11-Jun-04 3:37 
I thought of the same thing late last night, so I run a test just as you describe it; a counter that counts how many times data was read from the socket. The results were that both servers did exactly the same amount of work. This ties in with the fact that CPU utilization never reached 100% and therefore the CPU was never the bottleneck.

It is obvious that the .NET Framework does actually use something more sophisticated than an ordinary thread pool as the context switches are much lower than when using ordinary threads. This confuses me even more, because less context switches means less CPU utilization, however the IOCP solution had double the CPU utilization compared to the threads server. This means that the IOCP implementation is not just double as slow when it comes to processing data, it is even more since it is saving CPU utilization from the reduced number of context switches.

I just came across an implementation of an IOCP threadpool in C#. I haven't had a chance to read it thoroughly, but it might have some interesting insight into the .NET thread pool and IOCP.

Continuum Technologies[^]

Regards,
Angelos Petropoulos
GeneralRe: IO completion ports and unexpected performance. Pin
Angelos Petropoulos11-Jun-04 5:29
Angelos Petropoulos11-Jun-04 5:29 
GeneralRe: IO completion ports and unexpected performance. Pin
Colby James Smith1-Sep-04 10:06
Colby James Smith1-Sep-04 10:06 
Questionwhat is the differcence between close and dispose with Process instance? Pin
fu09-Jun-04 2:36
fu09-Jun-04 2:36 

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.