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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a6c65cbc407987fe X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-16 21:17:32 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!wn12feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi.com!sccrnsc03.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: dynamic multithreading References: <8MCB9.8643$8o1.1371873@news.xtra.co.nz> X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc03 1037510249 12.234.13.56 (Sun, 17 Nov 2002 05:17:29 GMT) NNTP-Posting-Date: Sun, 17 Nov 2002 05:17:29 GMT Organization: AT&T Broadband Date: Sun, 17 Nov 2002 05:17:29 GMT Xref: archiver1.google.com comp.lang.ada:30992 Date: 2002-11-17T05:17:29+00:00 List-Id: > It's much much cleaner to just let the task die and start from scratch. It's hard to get much simpler than: task body t is -- don't declare stuff here begin loop declare --declare it here instead begin accept do_something(what_to_do); -- code exception when others => -- handle any unhandled exceptions, -- or this can just be "null;" end; -- everthing about the last run is forgotten, start fresh end loop; end t; > you simply don't trust your run-time system to even de-allocate the stack) e.g. aborting a thread (TerminateThread) on MS Windows