Usenet comp.sys.vms (1990-2004)
 help / color / mirror / Atom feed
* DEC Threads to POSIX threads translation layer?
@ 1997-02-03  5:00 Dann Corbit
  1997-02-05  5:00 ` Rich Salz
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dann Corbit @ 1997-02-03  5:00 UTC (permalink / raw)



Is anyone aware of a POSIX threads emulator for ordinary DEC threads?  I
would like to be able to use a single source code base, and run all
threading calls through the POSIX threads API.  I also be able to run on
older DEC VAX systems that only have DEC threads.  Is anyone aware of an
available solution?

Alternatively, can POSIX threads be made to function on older installations
of VMS (before OpenVMS)?
-- 
I don't speak for anybody but myself, which everyone else is thankful for
( -- sig shamelessly purloined from Scott Johnson -- )



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: DEC Threads to POSIX threads translation layer?
  1997-02-03  5:00 DEC Threads to POSIX threads translation layer? Dann Corbit
  1997-02-05  5:00 ` Rich Salz
  1997-02-05  5:00 ` Dave Butenhof
@ 1997-02-05  5:00 ` Eric Johnson
  2 siblings, 0 replies; 4+ messages in thread
From: Eric Johnson @ 1997-02-05  5:00 UTC (permalink / raw)



"Dann Corbit" <dcorbit@solutionsiq.com> writes:

>Is anyone aware of a POSIX threads emulator for ordinary DEC threads?  I
>would like to be able to use a single source code base, and run all
>threading calls through the POSIX threads API.  I also be able to run on
>older DEC VAX systems that only have DEC threads.  Is anyone aware of an
>available solution?

The DEC Threads package offers two APIs to the underlying user-level
thread package.  The CMA layer which is Digital specific, and the
POSIX layer.  Both layers offer similar functionality, just slightly
different arguments.  I know the CMA layer.  I've only read about the
POSIX layer, so your mileage may vary.

I don't know to which POSIX spec the threads package conforms to.  The
documentation is fairly complete so you should be able to find your
answers in the manual.

>Alternatively, can POSIX threads be made to function on older installations
>of VMS (before OpenVMS)?

VMS and OpenVMS are the same thing.  OpenVMS is simply the 90's style
name for the same robust operating system.  :->.  As to which version
of OpenVMS does one need for the DEC Threads package?  Beats me.
We've been using it since 6.x.

-Eric



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: DEC Threads to POSIX threads translation layer?
  1997-02-03  5:00 DEC Threads to POSIX threads translation layer? Dann Corbit
@ 1997-02-05  5:00 ` Rich Salz
  1997-02-05  5:00 ` Dave Butenhof
  1997-02-05  5:00 ` Eric Johnson
  2 siblings, 0 replies; 4+ messages in thread
From: Rich Salz @ 1997-02-05  5:00 UTC (permalink / raw)



In <01bc1209$12d0a300$ca61e426@DCorbit.solutionsiq.com> "Dann Corbit" <dcorbit@solutionsiq.com> writes:
>Is anyone aware of a POSIX threads emulator for ordinary DEC threads?

The DCE 1.2.2 distribution includes an unsupported header file, library,
and README designed to put mostly Posix API's on top of DCE threads.
(The only source I contributed to this release of DCE. :)

DCE 1.2.2 is free for internal and R&D use; contact direct@osf.org.
	/r$



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: DEC Threads to POSIX threads translation layer?
  1997-02-03  5:00 DEC Threads to POSIX threads translation layer? Dann Corbit
  1997-02-05  5:00 ` Rich Salz
@ 1997-02-05  5:00 ` Dave Butenhof
  1997-02-05  5:00 ` Eric Johnson
  2 siblings, 0 replies; 4+ messages in thread
From: Dave Butenhof @ 1997-02-05  5:00 UTC (permalink / raw)



Dann Corbit wrote:
> Is anyone aware of a POSIX threads emulator for ordinary DEC threads?  I
> would like to be able to use a single source code base, and run all
> threading calls through the POSIX threads API.  I also be able to run on
> older DEC VAX systems that only have DEC threads.  Is anyone aware of an
> available solution?

First, a terminology correction. "DECthreads" (not "DEC threads") is the
generic name of Digital's common threading library. DECthreads is an
implementation of POSIX threads. Old versions of VMS (prior to 7.0) and
Digital UNIX (prior to 4.0), and all versions of ULTRIX and (currently)
NT provide only "draft 4" POSIX apis (also known as "DCE threads",
because it's the implementation that OSF licensed from us for DCE). New
versions of OpenVMS and Digital UNIX implement true POSIX threads, with
compatibility support for the draft 4 interfaces via a wrapper library.

OK, now, on to the real question. Whether your code is using the CMA
interface or the DCE thread interface, it would be fairly easy to write
your own set of POSIX wrappers on top of them. Like Sun's UI threads,
the semantics are very similar to POSIX threads. (It's a little more
complex with CMA threads, since you need to catch the exceptions and
convert back to POSIX error codes.)

> Alternatively, can POSIX threads be made to function on older installations
> of VMS (before OpenVMS)?

That, of course depends on what you mean, but the OpenVMS 7.0 version
of DECthreads (which supports POSIX threads) absolutely will not run on
earlier versions of VMS.

/---[ Dave Butenhof ]-----------------------[ butenhof@zko.dec.com ]---\
| Digital Equipment Corporation           110 Spit Brook Rd ZKO2-3/Q18 |
| 603.881.2218, FAX 603.881.0120                  Nashua NH 03062-2698 |
\-----------------[ Better Living Through Concurrency ]----------------/



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-02-05  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-02-03  5:00 DEC Threads to POSIX threads translation layer? Dann Corbit
1997-02-05  5:00 ` Rich Salz
1997-02-05  5:00 ` Dave Butenhof
1997-02-05  5:00 ` Eric Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox