From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] new system calls - semacquire, semrelease From: Charles Forsyth Date: Sat, 25 Mar 2006 09:22:00 +0000 In-Reply-To: <20060325045045.GA13159@mero.morphisms.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-bmtfojdmhqjdnpklxixahodhqs" Topicbox-Message-UUID: 200f81ac-ead1-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --upas-bmtfojdmhqjdnpklxixahodhqs Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit there is lock(2) in the public inferno distribution. the implementation is amusing. things like counting semaphores have been too, though not distributed, but these things are not used as much as channels in Limbo programming. --upas-bmtfojdmhqjdnpklxixahodhqs Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by lavoro; Sat Mar 25 04:52:21 GMT 2006 Received: from psuvax1.cse.psu.edu (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 727801082F for ; Fri, 24 Mar 2006 23:52:19 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: from localhost (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id DAD98100F7 for <9fans@cse.psu.edu>; Fri, 24 Mar 2006 23:51:49 -0500 (EST) Received: from mail.cse.psu.edu ([127.0.0.1]) by localhost (psuvax1 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08585-01-30 for <9fans@cse.psu.edu>; Fri, 24 Mar 2006 23:51:46 -0500 (EST) Received: from holo.morphisms.net (unknown [216.254.78.15]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id D9A4510101 for <9fans@cse.psu.edu>; Fri, 24 Mar 2006 23:51:45 -0500 (EST) Received: by holo.morphisms.net (Postfix, from userid 124) id 87D751E8C26; Fri, 24 Mar 2006 23:50:45 -0500 (EST) Received: from mero.morphisms.net (mero.morphisms.net [216.254.78.51]) (TLSv1/SSLv3 DHE-RSA-AES256-SHA 256/256) by holo.morphisms.net with SMTP; for 9fans@cse.psu.edu; Fri, 24 Mar 2006 23:50:45 -0500 (EST) (envelope-from wkj@morphisms.net) Received: by mero.morphisms.net (Postfix, from userid 1000) id 1A37E26; Fri, 24 Mar 2006 23:50:45 -0500 (EST) Date: Fri, 24 Mar 2006 23:50:45 -0500 From: William Josephson To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] new system calls - semacquire, semrelease Message-ID: <20060325045045.GA13159@mero.morphisms.net> References: <8cdf39c7acd3dea54d564e218a675229@swtch.com> <775b8d190603231652m1d505aa6n560fbd31e1ae5d56@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <775b8d190603231652m1d505aa6n560fbd31e1ae5d56@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-No-archive: yes X-Virus-Scanned: by amavisd-new at cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces+forsyth=terzarima.net@cse.psu.edu Errors-To: 9fans-bounces+forsyth=terzarima.net@cse.psu.edu On Fri, Mar 24, 2006 at 11:52:38AM +1100, Bruce Ellis wrote: > a bit like ... > > semnew: fn(n: int): ref Sem; > semacquire: fn(s: ref Sem); > semcanacq: fn(s: ref Sem): int; > semrelease: fn(s: ref Sem); > > in ozinferno Interesting... Say, is ozinferno available? Sounds like it might be interesting to poke at it. --upas-bmtfojdmhqjdnpklxixahodhqs--