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.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ec570d1a83fda83c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-26 09:03:54 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <3b5e887e.10671695@news.bt.es> Subject: Re: Problem with tasks Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Thu, 26 Jul 2001 12:03:51 EDT Organization: http://www.newsranger.com Date: Thu, 26 Jul 2001 16:03:51 GMT Xref: archiver1.google.com comp.lang.ada:10601 Date: 2001-07-26T16:03:51+00:00 List-Id: In article <3b5e887e.10671695@news.bt.es>, Carlos Aganzo says... > >I need to create a new instance of the same task from itself, First off, this sounds like you designed a system around the "fork" concept, and are now trying to plug that into Ada. You'll have a lot easier time if you *design* from Ada too. But as a beginner, it may be a while before you know enough Ada to do that. In the meantime, it might be worthwhile to take a step back and tell us what you are trying to accomplish with your "fork". If you want to dynamicly create tasks in Ada, you should be using task types. You can create pointers to task type objects, put them in arrays, dynamicly allocate and deallocate them, etc. You can even create them from within themselves, if you *truly* need something like "fork". That type of activity can lead to "fork-bomb" errors though. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com