> 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.)
Quote:> 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.
| 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 ]----------------/