Hi,

  One more point I missed is , I am creating my aplicationa as a daemon.

On 9/22/05, Suresh Ramasubramanian <[EMAIL PROTECTED]> wrote:
> Shijithlal wrote:
> > I am creating a Unix based application which consist of a TCP Server
> > part. In most of the examples I looked at contains the usage of
> > "fork()" when a new client request received at the server side. May I
> > can use thread instaed of this fork. If possible which one is more
> > better and why?.
> >
> > Actually I am develping the application in Linux and I want to port
> > the application to other Unix flavours.
> >
> > Please comment your suggestions nad opinions..
>
> One easy way would be to use something like Dan Bernstein's tcpserver to
> manage your connections.
>
> Fork is easy to do but make sure you clean up after a process or you'll
> end up leaving copies of that binary all over the memory and slowly your
> system starts crawling
>
> Ditto with threads - close an open thread when you are done
>
>        suresh
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> linux-india-help mailing list
> linux-india-help@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-india-help
>


--
Shijithlal L V
Fischer Systems India
224 NILA Technopark
Trivandrum 695581
INDIA

Ph:  91 471 2527427
Cell: 91 9349100636
email: [EMAIL PROTECTED],[EMAIL PROTECTED]


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
linux-india-help mailing list
linux-india-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to