From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,b484d09643d9bbb6 X-Google-Attributes: gidf8c9b,public X-Google-Thread: fc89c,b484d09643d9bbb6 X-Google-Attributes: gidfc89c,public X-Google-Thread: f72b0,b484d09643d9bbb6 X-Google-Attributes: gidf72b0,public X-Google-Thread: 115614,b484d09643d9bbb6 X-Google-Attributes: gid115614,public X-Google-Thread: fe1d2,b484d09643d9bbb6 X-Google-Attributes: gidfe1d2,public X-Google-Thread: fa664,b484d09643d9bbb6 X-Google-Attributes: gidfa664,public X-Google-Thread: fee84,b484d09643d9bbb6 X-Google-Attributes: gidfee84,public X-Google-Thread: 11035d,b484d09643d9bbb6 X-Google-Attributes: gid11035d,public From: Casper.Dik@Holland.Sun.COM (Casper H.S. Dik - Network Security Engineer) Subject: Re: See if you can run this Date: 1997/05/13 Message-ID: #1/1 X-Deja-AN: 241258921 Distribution: inet References: <33776eb4.19046817@news.elt.com> Supersedes: Organization: Sun Microsystems, Netherlands Newsgroups: comp.unix.sco.programmer,comp.unix.sco.misc,comp.unix.aix,comp.unix.misc,comp.unix.osf.osf1,comp.unix.programmer,comp.unix.questions,comp.unix.solaris blb@elt.com (Luke Braly) writes: > If you are able to multi-thread on your Unix implementation, I'd be >interested to see if you can run the program below. It uses msem_ >type semaphores in conjunction with threads. A colleague of mine says >it won't work on some Unix systems because the process (as opposed to >a thread) will be locked, thus causing the program to hang if two >threads in the same process lock the same semaphore. However, it works >fine under AIX. >msemaphore *sem; What's that? There's no such thing in Solaris (so it won't even compile). If you use pthreads, why not use POSIX semaphores? Casper -- Expressed in this posting are my opinions. They are in no way related to opinions held by my employer, Sun Microsystems. Statements on Sun products included here are not gospel and may be fiction rather than truth.