🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #7650

Re: Código base en C de un servidor

#7650
From: J.A. Gutierrez
Date: Wed, 05 Feb 2003 12:03
21 lines
1925 bytes
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.

	En todo caso, por completar, si que habria que preparar un
	esqueleto similar usando threads; pero eso de momento no
	lo tengo hecho...


-- 
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: <b1quil$t6h$1@news.unizar.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.rediris.es!bashful.rediris.es!news.unizar.es!not-for-mail
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>

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-05 03:24:59 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.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: 5 Feb 2003 12:03:33 GMT
Organization: Rank
Lines: 21
Message-ID: <b1quil$t6h$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>
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 1044446613 29905 155.210.152.20 (5 Feb 2003 12:03:33 GMT)
X-Complaints-To: usenet@news.unizar.es
NNTP-Posting-Date: 5 Feb 2003 12:03:33 GMT
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (IRIX/6.2 (IP22))