comp.lang.ada
 help / color / mirror / Atom feed
From: Calius <tow@netvision.net.il>
Subject: Re: Threading questions (for FAQ).
Date: 1996/09/18
Date: 1996-09-18T00:00:00+00:00	[thread overview]
Message-ID: <323FA609.1654@netvision.net.il> (raw)
In-Reply-To: 51m7kr$9cq@oclc.org


Sean Walton wrote:
> 
> I am putting together a FAQ for Linux Threads, and I understand that this
> language supports threading in some degree.  Could anyone please help me
> answer the following questions:
> 
>         1. Does this language have language elements to support threading?

Yes.  Ada supports threading (simultaneous subprocesses of a single
program).

>         2. What are the language elements?

The language element which enables threads is a TASK.  Ada also supports
IPC via a mechanism called RANDEVOUZ.

>         3. How are individual threads accessed within the language?

Each thread is an instance of a TASK TYPE.  Instances can be refrenced
like any
other variable (by their name, address etc.), including arrays of
threads, etc.
To pass information between threads, you can use RANDEVOUZs, which are
agreed
"meething places" where two threads can "meet" and "talk" (pass
information).

>         4. How do you debug threads within this language?

Depends on your debbuger and environment.  I know my debbuger (Verdix
SELF for
IBM RS6000, AIX) has to ability to set breakpoints at specific tasks,
and I think
that should be the case for any decent ADA debugger.

>         5. Where are sources of information for further study?

The infamous ADA LRM (which can be found online on the web as well), and
ofcourse
various books dealing with ADA.

                           Good luck with your FAQ,
                                                      Calius.




  parent reply	other threads:[~1996-09-18  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-17  0:00 Threading questions (for FAQ) Sean Walton
1996-09-17  0:00 ` Alan Lovejoy
1996-09-18  0:00 ` Calius [this message]
1996-09-18  0:00   ` Larry Kilgallen
1996-09-19  0:00   ` Tom I Helbekkmo
replies disabled

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