Article View: es.comp.os.linux.programacion
Article #7671Re: Código base en C de un servidor
From: J.A. Gutierrez
Date: Thu, 06 Feb 2003 08:48
Date: Thu, 06 Feb 2003 08:48
31 lines
2427 bytes
2427 bytes
Antonio Maestre Garc�a <anmaegar@quitararrakis.es> wrote: : J.A. Gutierrez wrote: :> Antonio Maestre Garc�a <anmaegar@quitararrakis.es> wrote: :> :> : No ser�a mejor utilizar hilos (con pthread) por cada nueva petici�n en :> : vez de procesos hijos (fork)? :> :> Buena pregunta. Depende mucho de cada caso en concreto. :> :> En algunos casos puede ser mejor fork y en otros no. Ademas, :> fork es universal, mientras que el soporte de threads en segun :> que unix puede no ser completo o incluso no existir. : Seg�n tengo entendido los pthreads son "universales" en los sistemas posix : �nicamente. �no? no necesariamente, puedes tener un sistema POSIX que no tenga threads posix. Como ejemplo, SunOS 4.x (_POSIX_VERSION defined (198808)) no tiene threads posix, sino LWP. y tambien puedes tener sistemas no posix en los que se disponga de alguna implementacion de threads posix. -- PGP and other useless info at \ http://www.cps.unizar.es/~spd/ \ finger://daphne.cps.unizar.es/spd \ Timeo Danaos et dona ferentes ftp://ivo.cps.unizar.es/pub/ \ (Virgilio)
Technical Details
Message-ID:
<b1t7g5$tb7$1@news.unizar.es>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsswitch.lcs.mit.edu!bloom-beacon.mit.edu!news.rediris.es!bashful.rediris.es!news.unizar.es!not-for-mailReferences:
<3e3bbbab_1@news.arrakis.es> <b1lnbd$8o0$1@news.unizar.es> <3e3f0179_2@news.arrakis.es> <b1o76l$ars$3@news.unizar.es> <3e403981_2@news.arrakis.es> <b1quil$t6h$1@news.unizar.es> <3e419731_4@news.arrakis.es>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,79de37df9f28b12c
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-02-06 00:04:43 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsswitch.lcs.mit.edu!bloom-beacon.mit.edu!news.rediris.es!bashful.rediris.es!news.unizar.es!not-for-mail
From: "J.A. Gutierrez" <spd@daphne.cps.unizar.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Código base en C de un servidor
Date: 6 Feb 2003 08:48:05 GMT
Organization: Rank
Lines: 31
Message-ID: <b1t7g5$tb7$1@news.unizar.es>
References: <3e3bbbab_1@news.arrakis.es> <b1lnbd$8o0$1@news.unizar.es> <3e3f0179_2@news.arrakis.es> <b1o76l$ars$3@news.unizar.es> <3e403981_2@news.arrakis.es> <b1quil$t6h$1@news.unizar.es> <3e419731_4@news.arrakis.es>
NNTP-Posting-Host: daphne.cps.unizar.es
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.unizar.es 1044521285 30055 155.210.152.20 (6 Feb 2003 08:48:05 GMT)
X-Complaints-To: usenet@news.unizar.es
NNTP-Posting-Date: 6 Feb 2003 08:48:05 GMT
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (IRIX/6.2 (IP22))