🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

RE: programacion concurrente

#13172
From: HumeWins
Date: Mon, 12 Mar 2001 22:02
17 lines
2168 bytes
> no estoy muy puesto... pero no habia una serie de funciones o
> "tecnicas" hechas precisamente para eso
>
> y llamadas IPCs o algo asi? como los semaforos, memorias compartidas
> y similares?
>

Efectivamente. Los mecanismos IPC te sirven perfectamente. En concreto la
memoria compartida. Se trataria de crear una zona de memoria compartida y
que todos los procesos la mapearan. Necesitarias semaforos si se produjeran
accesos de lectura/escritura simultaneas a la misma variable.
Mirate la funcion shmget (creo recordar) y a partir de ahi el man a muerte.

---
#define QUESTION ( (to_be) || (!to_be) )
Sin tildes deliberadamente
Reg.Linux user #97.271
Technical Details
Message-ID: <3aad46ac@filemon.telecable.es>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!64.244.79.11!sfo2-feed1.news.digex.net!dca6-feed1.news.digex.net!dca6-feed2.news.digex.net!intermedia!newsfeed.skycache.com!Cidera!news!news.rediris.es!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!news.bt.es!filemon.telecable.es!ppp00307.telecable.es
References: <98a6hh$pla$1@diana.bcn.ttd.net> <Pine.A41.4.31.0103091814390.90196-100000@anubis.uji.es> <ybqq6.2842$Lt1.11892@newsr01.ono.com> <Pine.A41.4.31.0103101528250.266510-100000@anubis.uji.es> <3AAA4DD7.ABBCBEFF@sol90.com>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit
X-Google-Thread: f86c8,2348dde84f6c9509
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-03-12 14:02:27 PST
From: "HumeWins" <NO@QUIERO.SPAM.GRACIAS>
Newsgroups: es.comp.os.linux.programacion
Subject: RE: programacion concurrente
Date: Mon, 12 Mar 2001 23:02:22 +0100
Organization: BT Tel. Netnews service (readers)
Lines: 19
Message-ID: <3aad46ac@filemon.telecable.es>
References: <98a6hh$pla$1@diana.bcn.ttd.net> <Pine.A41.4.31.0103091814390.90196-100000@anubis.uji.es> <ybqq6.2842$Lt1.11892@newsr01.ono.com> <Pine.A41.4.31.0103101528250.266510-100000@anubis.uji.es> <3AAA4DD7.ABBCBEFF@sol90.com>
NNTP-Posting-Host: filemon.telecable.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: titan.bt.es 984434251 18999 212.89.0.4 (12 Mar 2001 21:57:31 GMT)
X-Complaints-To: abuse@bt.es
NNTP-Posting-Date: 12 Mar 2001 21:57:31 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
X-Original-NNTP-Posting-Host: ppp00307.telecable.es
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!64.244.79.11!sfo2-feed1.news.digex.net!dca6-feed1.news.digex.net!dca6-feed2.news.digex.net!intermedia!newsfeed.skycache.com!Cidera!news!news.rediris.es!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!news.bt.es!filemon.telecable.es!ppp00307.telecable.es