From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f4fd2,2c8b175fe3f63b8c X-Google-Attributes: gidf4fd2,public X-Google-Thread: 1111a3,2c8b175fe3f63b8c X-Google-Attributes: gid1111a3,public X-Google-Thread: fac41,2c8b175fe3f63b8c X-Google-Attributes: gidfac41,public X-Google-Thread: 114809,2c8b175fe3f63b8c X-Google-Attributes: gid114809,public X-Google-Thread: 103376,2c8b175fe3f63b8c X-Google-Attributes: gid103376,public X-Google-Thread: 10dd18,2c8b175fe3f63b8c X-Google-Attributes: gid10dd18,public X-Google-Thread: 1008e3,2c8b175fe3f63b8c X-Google-Attributes: gid1008e3,public From: Calius Subject: Re: Threading questions (for FAQ). Date: 1996/09/18 Message-ID: <323FA609.1654@netvision.net.il>#1/1 X-Deja-AN: 181212162 references: <51m7kr$9cq@oclc.org> content-type: text/plain; charset=us-ascii organization: CPU Gods mime-version: 1.0 newsgroups: comp.lang.ada,comp.lang.eiffel,comp.lang.lisp,comp.lang.modula3,comp.lang.objective-c,comp.lang.python,comp.lang.smalltalk x-mailer: Mozilla 3.0 (Win16; I) Date: 1996-09-18T00:00:00+00:00 List-Id: 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.