Just to be clear, I was *not* advocating the use of files as a semaphore. I'm just saying its one of your alternatives. Sometimes you just gotta do what you gotta do (for example from a bourne shell program). Not that I'm trying to get anyone to use this method (I wouldn't) but unless you're flailing on the lock those milliseconds you're talking about are nominal and the average program could probably care less. - Matt John Summerfield wrote: > > > This is a multi-part message in MIME format. > > --------------2FC454B1D9AB31B600F414F0 > > Content-Type: text/plain; charset=us-ascii > > Content-Transfer-Encoding: 7bit > > > > Yes a "semaphore" is very portable (at least within Unix environments). > > You can also use "flock()" on a file. Another trick is just to create > > and destroy a file as a sort of gate condition. > > Creating & deleting files are extremely slow ways of synchronisation. > Measure times in tens, maybe hundreds, of milliseconds. > > -- > Cheers > John Summerfield > http://os2.ami.com.au/os2/ for OS/2 support. > Configuration, networking, combined IBM ftpsites index. > > -- > To unsubscribe: > mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
begin:vcard n:Fahrner;Matt tel;pager:(603) 639-4142 tel;fax:(603) 443-6190 tel;work:(603) 448-4100 xt 5150 x-mozilla-html:FALSE url:http://www.gizzy.com/matt org:Burlington Coat Factory Warehouse;MIS Networking version:2.1 email;internet:[EMAIL PROTECTED] title:Manager of Networking adr;quoted-printable:;;2 South Park St.=0D=0AWillis House;Lebanon;NH;03766;USA x-mozilla-cpt:;-3648 fn:Matt Fahrner end:vcard