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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f891f,78850d82ea9c576 X-Google-Attributes: gidf891f,public X-Google-Thread: 103376,78850d82ea9c576 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-11-23 08:58:57 PST Path: nntp.gmd.de!newsserver.jvnc.net!darwin.sura.net!news.sesqui.net!uuneo.neosoft.com!Starbase.NeoSoft.COM!not-for-mail From: dweller@Starbase.NeoSoft.COM (David Weller) Newsgroups: comp.lang.ada,comp.lang.misc Subject: Re: Multithreading Date: 23 Nov 1994 06:00:00 -0600 Organization: NeoSoft Internet Services +1 713 684 5969 Message-ID: <3avas0$inu@Starbase.NeoSoft.COM> References: <3ah4c0$rl4@Starbase.NeoSoft.COM> NNTP-Posting-Host: starbase.neosoft.com Xref: nntp.gmd.de comp.lang.ada:16912 comp.lang.misc:9767 Date: 1994-11-23T06:00:00-06:00 List-Id: In article , Patrick D. Logan wrote: >In article <3ah4c0$rl4@Starbase.NeoSoft.COM> dweller@Starbase.NeoSoft.COM (David Weller) writes: > >>In article , >>>Do any of these Adas that support OS threading also support garbage >>>collection? > >>Huh? Which OS's do GC automatically? > >My understanding of Ada is that it's definition allows for garbage collection, >and that some implementations do implement garbage collection. > >My question then is of the Ada implementations that support OS threads, are >there any that also implement garbage collection such that I can have multiple >threads running where the data is being garbage collected? > (Somehow I always get the nuances of GC wrong, but if my statement is wrong here, somebody will probably correct me :-) Offhand I'd say that effect could be achieved by nesting a protected type instance inside a Controlled type: protected type Multi_Thread_Data is ... type GC_Item is new Ada.Finalization.Controlled with record Hidden : Multi_Thread_Data; end record; Does a more experienced "language lawyer" want to add something in? Am I overtrivializing here? Norm? Tuck? -- Proud (and vocal) member of Team Ada! (and Team OS/2) ||This is not your Ada -- Very Cool. Doesn't Suck. || father's Ada For all sorts of interesting Ada tidbits, run the command: ||________________ "finger dweller@starbase.neosoft.com | more" (or e-mail with "finger" as subj.) |"Quitting C++ isn't so difficult, provided you show as much | | persistence stopping as you did starting." dweller |