comp.lang.ada
 help / color / mirror / Atom feed
From: martillo@bloom-beacon.UUCP
Subject: Re: Microsoft OS/2 -- Ideal for Ada
Date: Mon, 15-Jun-87 07:40:47 EDT	[thread overview]
Date: Mon Jun 15 07:40:47 1987
Message-ID: <928@bloom-beacon.MIT.EDU> (raw)
In-Reply-To: 8706130340.AA00283@rand-unix.arpa

In article <8706130340.AA00283@rand-unix.arpa> hermix!fischer@rand-unix.ARPA writes:
>Microsoft OS/2 (the replacement for MS-DOS for 286 machines) seems to have
>everything which Ada's tasking management needs, and Unix doesn't provide.

>Unlike the balky fork concept of UNIX, OS/2 treats parallel executions
>within a process as threads, which look at first glance as if they were
>designed with Ada rendezvous in mind;  the threads can share the same
>local data group, which is the opposite of UNIX fork semantics.

The correct question is whether the language implementer should
be mapping an Ada task into a Unix fork.  The Unix process is
an operating system entity which corresponds to a particular
model of computation  where user programs access a virtual machine in
isolation from all other programs and request services and request
services from the virtual machine via a generalized set of system
calls to the operating system.  Such a model makes logical i/o
and piping really trivial.  The Unix model is much more powerful
than the multics or vms model of computation.  

Now the Ada task is a programming entity which may have some use in
operating system develop and I would expect Ada tasking to compile to
processor specific tasking instructions such as are present on the
80386 or 80286 if such are present.  If such instructions are not
present, the compiler would have to simulate tasking instructions just
as a C compiler would simulate stack instructions on a machine which
had no specialized stack instructions.

Providing language level tasking by simulating non-existent tasking
instructions should be no more than a couple of days work for the
compiler writer.  The implied criticism of Unix in this article is
gratuitous and implies a lack of understanding.

>Given the apparent compatibility of Ada with OS/2, I'd like to see a discussion
>of compiler vendor plans for supporting OS/2... 

>(The only published public reference on OS/2 multiprocessing which I have
>seen at newstands is in the May 1987 Microsoft Systems Journal, pg 29 ff.)

>  Herm Fischer

I thought applications written in ADA were supposed to be portable.

  reply	other threads:[~1987-06-15 11:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1987-06-13  0:06 Microsoft OS/2 -- Ideal for Ada Herm Fischer
1987-06-15 11:40 ` martillo [this message]
1987-06-16 12:50   ` Robert Firth
1987-06-16 22:24     ` martillo
1987-06-17  4:14     ` Mark I. Himelstein
1987-06-17 22:13       ` Yakim Martillo
  -- strict thread matches above, loose matches on Subject: below --
1987-06-17 16:28 "VAXR::IVANOVIC"
1987-06-19 11:33 ` martillo
replies disabled

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