Article View: es.comp.os.linux.programacion
Article #13185Re: Procesos o Threads
From: J.A. Gutierrez
Date: Tue, 13 Mar 2001 13:51
Date: Tue, 13 Mar 2001 13:51
28 lines
2430 bytes
2430 bytes
Cron <cron@cron.com> wrote:
: Si utilizo __clone(int (*fn) (void *arg), void *child_stack, int flags, void
: *arg) para crear los procesos hijos, las variables creadas dentro de la
: funcion fn se compartir�n?
ni se te ocurra.
man clone:
The __clone call is Linux-specific and should not be used
in programs intended to be portable. For programming
threaded applications (multiple threads of control in the
same memory space), it is better to use a library imple�
menting the POSIX 1003.1c thread API, such as the Linux�
Threads library. See pthread_create(3thr).
Por cierto, si piensas poner tu programa en un servidor publico
te sugiero que te leas algo de documentacion sobre como hacer
programas seguros.
http://www.linuxdoc.org/HOWTO/Secure-Programs-HOWTO/index.html
http://www.sunworld.com/swol-04-1998/swol-04-security.html?040198i
--
PGP and other useless info at \ La ciencia-ficcion es
http://www.cps.unizar.es/~spd/ \ ese futuro en el que
finger://daphne.cps.unizar.es/spd \ lo seguro es que ya
ftp://ivo.cps.unizar.es/pub/ \ (F. Alfaro) no seremos jovenes
Technical Details
Message-ID:
<98l8l3$gsa$2@news.unizar.es>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!zeus.visi.com!hermes.visi.com!news-out.visi.com!feeder.via.net!fr.clara.net!heighliner.fr.clara.net!opentransit.net!jussieu.fr!news.rediris.es!news.unizar.es!not-for-mailReferences:
<98i0ha$fg0$1@diana.bcn.ttd.net> <98in5i$4g2$1@titan.bt.es> <nraj89.ik1.ln@asimovi.localdomain> <984440584.1123530143@news.inicia.es> <98knsf$bco$1@diana.bcn.ttd.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,cf5dea8aefc646f8
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-03-13 05:45:11 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!zeus.visi.com!hermes.visi.com!news-out.visi.com!feeder.via.net!fr.clara.net!heighliner.fr.clara.net!opentransit.net!jussieu.fr!news.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: Procesos o Threads
Date: 13 Mar 2001 13:51:31 GMT
Organization: Rank
Lines: 28
Message-ID: <98l8l3$gsa$2@news.unizar.es>
References: <98i0ha$fg0$1@diana.bcn.ttd.net> <98in5i$4g2$1@titan.bt.es> <nraj89.ik1.ln@asimovi.localdomain> <984440584.1123530143@news.inicia.es> <98knsf$bco$1@diana.bcn.ttd.net>
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 984491491 17290 155.210.152.20 (13 Mar 2001 13:51:31 GMT)
X-Complaints-To: usenet@news.unizar.es
NNTP-Posting-Date: 13 Mar 2001 13:51:31 GMT
User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (IRIX/6.2 (IP22))