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

C / C++ / MFC

 
AnswerRe: know any articles on script interpreters? Pin
Garth J Lancaster18-Aug-05 18:50
professionalGarth J Lancaster18-Aug-05 18:50 
Questionwhich is better for gui? Pin
namaskaaram18-Aug-05 17:12
namaskaaram18-Aug-05 17:12 
AnswerRe: which is better for gui? Pin
sunit518-Aug-05 18:17
sunit518-Aug-05 18:17 
GeneralSynchronous Vs asynchronous server connection Pin
ppp00118-Aug-05 16:20
ppp00118-Aug-05 16:20 
GeneralRe: Synchronous Vs asynchronous server connection Pin
geo_m18-Aug-05 19:42
geo_m18-Aug-05 19:42 
GeneralRe: Synchronous Vs asynchronous server connection Pin
ppp00118-Aug-05 20:28
ppp00118-Aug-05 20:28 
GeneralRe: Synchronous Vs asynchronous server connection Pin
geo_m18-Aug-05 20:53
geo_m18-Aug-05 20:53 
GeneralRe: Synchronous Vs asynchronous server connection Pin
MailtoGops19-Aug-05 3:44
MailtoGops19-Aug-05 3:44 
Really good question...

Geo states right one regarding one client and multiple client request. I would recommend asynchoronous if you have multiple clients.. But Now you have to think about the right choices of choosing a thread option.

Option 1:

1. You can handle multiple client request in one thread!!! by using windows socket overlapped, or messaging socket communication technologies. Microsoft provides better support to work with one thread but multiple socket connection. I think you can handle maximum of 64 client connections in one thread.. (I may be wrong). But to be careful, this choice won't always good to any solution.. You have to workout whether this technique is suitable for you or not.

2. If you opt for single thread per connection, this seems to be good, but this will screw your application, system performance. Suppose say, your server handles 1000 request at a time, you have to create 1000 threads to handle this.. Frown | :( But still you have choice.. You can use thread pooling, instead of creating a thread each time, you can use existing thread one the connected client disconnected.. Again this is painful approach, but this would increase performance of the system..

3. Mix of option one and Two. Having thread pool + one thread will handle multple sockets

This is really very good to discuss, I would appreciate if you guys add more points to this topic...



" Action without vision is only passing time,
Vision without action is merely day dreaming,
But vision with action can change the world "

- Words from Nelson Mandela

Thanks & Regards,

Gopalakrishnan
Generalform design standard Pin
ppp00118-Aug-05 16:09
ppp00118-Aug-05 16:09 
Generalmaximize and minimize button Pin
Member 216100418-Aug-05 15:46
Member 216100418-Aug-05 15:46 
GeneralRe: maximize and minimize button Pin
try8818-Aug-05 16:15
try8818-Aug-05 16:15 
GeneralRe: maximize and minimize button Pin
Weiye Chen18-Aug-05 16:20
Weiye Chen18-Aug-05 16:20 
GeneralConversions Pin
Prgrmr4Christ18-Aug-05 13:58
Prgrmr4Christ18-Aug-05 13:58 
GeneralRe: Conversions Pin
TheGreatAndPowerfulOz18-Aug-05 14:19
TheGreatAndPowerfulOz18-Aug-05 14:19 
GeneralRe: Conversions Pin
Prgrmr4Christ18-Aug-05 14:41
Prgrmr4Christ18-Aug-05 14:41 
GeneralRe: Conversions Pin
TheGreatAndPowerfulOz18-Aug-05 14:55
TheGreatAndPowerfulOz18-Aug-05 14:55 
GeneralRe: Conversions Pin
Prgrmr4Christ18-Aug-05 15:39
Prgrmr4Christ18-Aug-05 15:39 
GeneralRe: Conversions Pin
toxcct18-Aug-05 20:12
toxcct18-Aug-05 20:12 
GeneralVirtual disk drive Pin
Eureka_jim18-Aug-05 11:50
Eureka_jim18-Aug-05 11:50 
GeneralRe: Virtual disk drive Pin
Anonymous18-Aug-05 12:14
Anonymous18-Aug-05 12:14 
GeneralRe: Virtual disk drive Pin
MailtoGops19-Aug-05 3:51
MailtoGops19-Aug-05 3:51 
Generalproblem in running an application Pin
celllllllll18-Aug-05 11:32
celllllllll18-Aug-05 11:32 
GeneralRe: problem in running an application Pin
Christian Graus18-Aug-05 15:13
protectorChristian Graus18-Aug-05 15:13 
GeneralRe: problem in running an application Pin
alias001818-Aug-05 22:19
alias001818-Aug-05 22:19 
GeneralRe: problem in running an application Pin
celllllllll19-Aug-05 7:19
celllllllll19-Aug-05 7:19 

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.