Path: bga.com!news.sprintlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!
newsfeed.ksu.ksu.edu!moe.ksu.ksu.edu!matt.ksu.ksu.edu!not-for-mail
From: nhowl...@ksu.ksu.edu (Neal Patrick Howland)
Newsgroups: comp.os.linux.development
Subject: Does linux implement semaphores?
Date: 28 Sep 1994 16:16:40 -0500
Organization: Kansas State University
Lines: 14
Message-ID: <36cmfo$hth@matt.ksu.ksu.edu>
NNTP-Posting-Host: matt.ksu.ksu.edu
X-Newsreader: NN version 6.5.0 #1 (NOV)

I was wondering in the standard linux develpment packages implemented
a semaphore synchronization call.  If not, how do you synchronize two 
processes to keep them from entering their critical sections at the same
time?

I haven't installed or used linux yet, but I am going to try soon and would
like to know what kind of system calls are available.  I have several 
unix programs that use the semaphore method and I would like to just be
able to transfer them to linux and compile them.


Neal Howland
nhowl...@matt.ksu.ksu.edu

Newsgroups: comp.os.linux.development
Path: bga.com!news.sprintlink.net!howland.reston.ans.net!xlink.net!
news.asys-h.de!idgie.ix.de!not-for-mail
From: h...@ix.de (Harald Milz)
Subject: Re: Does linux implement semaphores?
Message-ID: <CwyDAr.D93@ix.de>
Lines: 15
Sender: n...@ix.de
Reply-To: h...@ix.de
Organization: Verlag Heinz Heise GmbH & Co KG
X-Newsreader: TIN [UNIX 1.3 940826BETA PL0]
References: <36cmfo$hth@matt.ksu.ksu.edu>
Date: Fri, 30 Sep 1994 17:16:03 GMT

In comp.os.linux.development, Neal Patrick Howland (nhowl...@ksu.ksu.edu) wrote:
> I was wondering in the standard linux develpment packages implemented
> a semaphore synchronization call.  If not, how do you synchronize two 
> processes to keep them from entering their critical sections at the same
> time?

Using named pipes is an elegant method to achieve this. 

-- 
"You'll never be the man your mother was!"
-- 
Harald Milz (h...@ix.de)      WWW: http://www.ix.de/editors/hm.html
iX Multiuser Multitasking Magazine	phone +49 (511) 53 52-377
Helstorfer Str. 7, D-30625 Hannover	fax   +49 (511) 53 52-378
Opinions stated herein are my own, not necessarily my employer's.

Newsgroups: comp.os.linux.development
Path: bga.com!news.sprintlink.net!pipex!uknet!info!iialan
From: iia...@iifeak.swan.ac.uk (Alan Cox)
Subject: Re: Does linux implement semaphores?
Message-ID: <CxGCA9.40B@info.swan.ac.uk>
Sender: n...@info.swan.ac.uk
Nntp-Posting-Host: iifeak.swan.ac.uk
Organization: Institute For Industrial Information Technology
References: <36cmfo$hth@matt.ksu.ksu.edu> <CwyDAr.D93@ix.de>
Date: Mon, 10 Oct 1994 10:10:56 GMT
Lines: 16

In article <CwyDAr....@ix.de> h...@ix.de writes:
>In comp.os.linux.development, Neal Patrick Howland (nhowl...@ksu.ksu.edu) wrote:
>> I was wondering in the standard linux develpment packages implemented
>> a semaphore synchronization call.  If not, how do you synchronize two 
>> processes to keep them from entering their critical sections at the same
>> time?
>Using named pipes is an elegant method to achieve this. 

There are also the system 5 semaphores which work rather nicely 8)

Alan

-- 
  ..-----------,,----------------------------,,----------------------------,,
 // Alan Cox  //  iia...@www.linux.org.uk   //  GW4PTS@GB7SWN.#45.GBR.EU  //
 ``----------'`----------------------------'`----------------------------''