From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,e5cbbfd051ebdaf0 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-11-30 17:19:33 PST Path: gmd.de!xlink.net!howland.reston.ans.net!noc.near.net!sunfish.hi.com!clam.hi.com!not-for-mail From: wright@clam.hi.com (David Wright) Newsgroups: comp.unix.osf.misc Subject: Re: Threads in DCE Date: 30 Nov 1993 19:47:49 -0000 Organization: Hitachi Computer Products, OSSD division Distribution: world Message-ID: <2dgpjlINNhi0@clam.hi.com> References: <2cgb53$efn@bbs.pnl.gov> <1993Nov18.184228.2603@ncsu.edu> <2dfpe8$h0h@nntpd.lkg.dec.com> NNTP-Posting-Host: clam.hi.com In article <2dfpe8$h0h@nntpd.lkg.dec.com> mjg@ktbush.ogo.dec.com (Michael J. Grier) writes: > >In article <1993Nov18.184228.2603@ncsu.edu>, mauney@adm.csc.ncsu.edu (Jon Mauney) writes: >|>pthreads is a Posix standard-to-be. OSF DCE specifies Posix 1003.4a draft 4 >|> for their threads interface. Posix has progressed beyond draft 4, but DCE >|> is what it is. > From what I understand, the DCE pthreads interface will synchronize with >the POSIX specification when it is complete. Be ready to change your >source code! But the 1003.4a standard is not yet settled, and OSF has no current plans to change their threads. Nor do I expect to even see any plans until the standard is approved. >|>cma is Digital's proprietary threads interface. Digital supplied cma to OSF >|> as a technology to implement user-space threads on non-threaded kernels, >|> so you may see it in DCE products, but DCE programs should use the pthread >|> interface. > As has been mentioned in other postings, CMA and Pthreads D4 are pretty >much alike. > The difference is that the CMA interface is stable and will not change >in the future. If you want your sources to continue to compile and build >without changes into the future, on Digital platforms at least, CMA is your >tool. However, none of the OSF-supplied DCE components use the CMA calls directly, or at least they are not supposed to and any such code is considered a bug. No telling what might come along later, so "be prepared to change your source" is even more appropriate than for pthreads users. Maybe on Digital platforms it's considered safe to use CMA interfaces, but I wouldn't do it on any other vendor platforms. I'd have junked CMA on the port I'm doing except that I didn't have time to locate bugs in our OSF/1 pthreads library. -- David Wright, Hitachi Computer Products (America), Inc. Waltham, MA wright@hi.com :: These are my opinions, not necessarily Hitachi's, but you're free to disagree, you poor deluded creature