Networking Forums

Networking Forums > Computer Networking > Linux Networking > Re: Efficient methods

Reply
Thread Tools Display Modes

Re: Efficient methods

 
 
Boudewijn Dijkstra
Guest
Posts: n/a

 
      03-01-2010, 01:44 PM
Op Thu, 25 Feb 2010 03:41:07 +0100 schreef Maxwell Lol
<(E-Mail Removed)>:
> karthikbalaguru <(E-Mail Removed)> writes:
>> While reading about the various designs, interestingly i
>> came across an info that the design of TCP servers is
>> mostly such that whenever it accepts a connection,
>> a new process is invoked to handle it .
>> But, it seems that in the case of UDP servers design,
>> there is only a single process that handles all client
>> requests. Why such a difference in design of TCP and
>> UDP servers ? How is TCP server able to handle
>> large number of very rapid near-simultaneous connections ?
>> Any ideas ?

>
>
> The TCP server forks a new process (which is very fast, as nothing
> needs to to copied)


Some things need to be copied, like file descriptors, but nothing big.
Still, forking takes considerably more overhead in time and space than
managing the context yourself.



--
Gemaakt met Opera's revolutionaire e-mailprogramma:
http://www.opera.com/mail/
(remove the obvious prefix to reply by mail)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




1 2 3 4 5 6 7 8 9 10 11