Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!steinmetz!mizar!jesup
From: jesup@mizar.steinmetz (Randell Jesup)
Newsgroups: comp.sys.amiga
Subject: Re: Comments on the uniqueness of task & window id's
Message-ID: <6752@steinmetz.steinmetz.UUCP>
Date: Mon, 20-Jul-87 15:23:16 EDT
Article-I.D.: steinmet.6752
Posted: Mon Jul 20 15:23:16 1987
Date-Received: Tue, 21-Jul-87 05:50:14 EDT
References: <8706260543.AA20346@cogsci.berkeley.edu> <4445@ihlpa.ATT.COM> <386@sugar.UUCP>
Sender: root@steinmetz.steinmetz.UUCP
Reply-To: jesup@sungod.steinmetz.UUCP (Randell Jesup)
Organization: General Electric CRD, Schenectady, NY
Lines: 19
Keywords: ID-handler

In article <386@sugar.UUCP> peter@sugar.UUCP (Peter DaSilva) writes:
>Do what UNIX programs do to create files in /tmp. What you do
>is: 
>	Create name filename.digits.A
>	begin:
>		Examine it.
>		If it exists, create name filename.digits.B,
>			and try again.
>	end:
>	create the file and boogie.

Just make sure digits are unique to the running program.  Otherwise, you get
into the old 'works except on a full moon when two copies are running at the
exact same time doing the same thing' problem.  Most problems of unique files
and ports can be solved with Forbid(), Permit(), and FindPort().

	Randell Jesup
	jesup@steinmetz.uucp
	jesup@ge-crd.arpa