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 07:50:48 PST Path: gmd.de!xlink.net!howland.reston.ans.net!spool.mu.edu!sgiblab!sgigate.sgi.com!olivea!decwrl!pa.dec.com!nntpd.lkg.dec.com!ktbush.ogo.dec.com!mjg From: mjg@ktbush.ogo.dec.com (Michael J. Grier) Newsgroups: comp.unix.osf.misc Subject: Re: Threads in DCE Date: 30 Nov 1993 15:38:48 GMT Organization: Digital Equipment Corporation Distribution: world Message-ID: <2dfpe8$h0h@nntpd.lkg.dec.com> References: <2cgb53$efn@bbs.pnl.gov> <1993Nov18.184228.2603@ncsu.edu> Reply-To: mjg@ktbush.ogo.dec.com (Michael J. Grier) NNTP-Posting-Host: ktbush.ogo.dec.com X-Newsreader: mxrn 6.18-5 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! |>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. From discussions with the DECthreads developers (I'm not one, just a client for a number of years now) binaries built with the pthreads interface will continue to work with sharable libraries in the future (i.e. the old interfaces will be preserved) but source compatibilty will not be maintained. Basically from where I sit, the decision of which to make depends on your market and where you want to spend your time in the future. If you need multiplatform support today, pthreads is really your only choice. CMA is available on a number of Digital platforms, but not every one that's interesting. Pthread is available pretty much across the board, but as I mentioned, you're buying into requiring source changes in the future. (I've been assured that the source changes will be minimal/minor, but as any maintainer knows, even "minimal" changes tend to introduce bugs...) ------------------------------------------------------------------------ I'm saying this, not Digital. Don't hold them responsibile for it! Michael J. Grier Digital Equipment Corporation (508) 496-8417 mjg@ktbush.ogo.dec.com Stow, Mass, USA Mailstop OGO1-1/E16