Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: Icon for a control Pin
leppie20-Sep-03 23:12
leppie20-Sep-03 23:12 
GeneralBinding multiple file collections to a form control Pin
Member 52585820-Sep-03 19:01
Member 52585820-Sep-03 19:01 
GeneralRe: Binding multiple file collections to a form control Pin
Blake Coverett20-Sep-03 20:12
Blake Coverett20-Sep-03 20:12 
Generalinterrupt mousemove or scrollbar Pin
novachen20-Sep-03 18:43
novachen20-Sep-03 18:43 
Generali want the code of to upload file with c# Pin
182720-Sep-03 14:39
182720-Sep-03 14:39 
GeneralGetting nested User Control item instance Pin
n3d3us20-Sep-03 13:15
n3d3us20-Sep-03 13:15 
GeneralRe: Getting nested User Control item instance Pin
n3d3us20-Sep-03 13:56
n3d3us20-Sep-03 13:56 
QuestionSockets: Threaded & Async? Pin
oblius20-Sep-03 12:43
oblius20-Sep-03 12:43 
I'm developing a socket server application in C# that I plan to use primarily to provide Flash clients with "real-time" interactivity (like chat, games, etc.)

So I've seen tons of Multithreaded socket programming articles, and tons of Asynchronous socket programming articles. What about a multithreaded design with asynchronous socket programming?

As I've come to understand (correct me if I'm wrong), asynchronous sockets uses threads, managed by the system, to execute in the first place. Knowing this, would there be a sensible advantage to combine "manually" generated threads and asynchronous socket techniques? Would it mean any noticeable performance gain, provide more scaleability, or would the extra overhead actually slow it down? Would it be worth the time debugging the dang thing considering the above factors?

I've already written a multithreaded (sync) socket server in Java, which runs pretty well. On an old PII/400 w/128MB RAM it handled almost 900 concurrent connections all sending randomly timed messages before it crashed. CPU was at 32% and the reason it crashed was it ran out of RAM Smile | :) Mind you, the server was running as an NT Service through a C++ wrapper for Java written by Bill Giel. Overall, I was pretty pleased with those results, and the Java server is what I'm benchmarking against.

I'm just learning C# & .NET, although I'm not new to programming. I thought this would be a fun project to get cozy with .NET. Smile | :)

Any comments are appreciated - thanks!

oblius
http://www.oblius.com/
AnswerRe: Sockets: Threaded & Async? Pin
Blake Coverett20-Sep-03 14:01
Blake Coverett20-Sep-03 14:01 
GeneralRe: Sockets: Threaded & Async? Pin
oblius20-Sep-03 14:11
oblius20-Sep-03 14:11 
GeneralRe: Sockets: Threaded & Async? Pin
Blake Coverett20-Sep-03 15:10
Blake Coverett20-Sep-03 15:10 
GeneralRe: Sockets: Threaded & Async? Pin
oblius20-Sep-03 16:20
oblius20-Sep-03 16:20 
GeneralMessage Queue Pin
ravfingcoder20-Sep-03 5:22
ravfingcoder20-Sep-03 5:22 
GeneralDigital Signature Pin
ravfingcoder20-Sep-03 4:11
ravfingcoder20-Sep-03 4:11 
Questionhow do you retrieve IP address and host name again? Pin
ravfingcoder20-Sep-03 4:06
ravfingcoder20-Sep-03 4:06 
AnswerRe: how do you retrieve IP address and host name again? Pin
leppie20-Sep-03 8:49
leppie20-Sep-03 8:49 
GeneralRe: how do you retrieve IP address and host name again? Pin
devvvy20-Sep-03 10:49
devvvy20-Sep-03 10:49 
GeneralRe: how do you retrieve IP address and host name again? Pin
zhouao22-Sep-03 19:07
zhouao22-Sep-03 19:07 
GeneralHidden Columns in ListView Pin
aka the guy20-Sep-03 3:44
aka the guy20-Sep-03 3:44 
GeneralRe: Hidden Columns in ListView Pin
Wjousts21-Sep-03 10:29
Wjousts21-Sep-03 10:29 
GeneralRe: Hidden Columns in ListView Pin
aka the guy21-Sep-03 14:06
aka the guy21-Sep-03 14:06 
GeneralNetwork Programming... Pin
fadee20-Sep-03 1:52
fadee20-Sep-03 1:52 
GeneralRe: Network Programming... Pin
Blake Coverett20-Sep-03 14:45
Blake Coverett20-Sep-03 14:45 
GeneralRe: Network Programming... Pin
fadee21-Sep-03 17:13
fadee21-Sep-03 17:13 
GeneralCom interop Pin
Abhijit Desai20-Sep-03 0:24
Abhijit Desai20-Sep-03 0:24 

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.