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-Thread: 103376,88cb7446cf44556a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!213.132.189.1.MISMATCH!multikabel.net!feed10.multikabel.net!hwmnpeer01.ams!news-out.ntli.net!newsrout1-gui.ntli.net!ntli.net!news.highwinds-media.com!newspeer1-win.ntli.net!newsfe2-gui.ntli.net.POSTED!53ab2750!not-for-mail From: "Dr. Adrian Wrigley" Subject: Re: Reliability and deadlock in Annex E/distributed code User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Message-ID: Newsgroups: comp.lang.ada References: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: Wed, 13 Sep 2006 11:00:12 GMT NNTP-Posting-Host: 82.10.238.153 X-Trace: newsfe2-gui.ntli.net 1158145212 82.10.238.153 (Wed, 13 Sep 2006 12:00:12 BST) NNTP-Posting-Date: Wed, 13 Sep 2006 12:00:12 BST Organization: NTL Xref: g2news2.google.com comp.lang.ada:6573 Date: 2006-09-13T11:00:12+00:00 List-Id: On Tue, 12 Sep 2006 18:24:56 -0500, tmoran wrote: > I'm not familiar with the configuration control for the partitions, > so I have some questions: > Why is there a "delay 1000.0;" in Amain in partition A? > I see explicit starts for A and B - are they automatically > allowed to terminate when C ends? > When C is explicitly started a second time what causes A and B > to still be present? The program terminates when all the partitions are ready to terminate. All the partitions with RCI and Remote Types units have to run. Partitions with normal units only can be run any number of times (including not at all) - if started, they have to complete before the program can terminate. The Local_Termination policy on CPart allows the partition to exit when it has nothing left to do. Otherwise, it exits when APart and BPart exit. Without the delay 1000.0, the program terminates as soon as APart and BPart have been started and completed. This would not give time for the user to start a CPart. With the delay, APart and BPart stay running for 1000 seconds, allowing the user to run several CPart (perhaps concurrently). When the time elapses and the CParts have completed, the program terminates. In the full program I have, there are several different client partitions like CPart, but with different functionality. I have several instantiations of the server like BPart (which has normal units in my case). APart provides naming services allowing the BParts to be located. It has been running with 3.15p for a year or two with a separate watchdog to restart the server if it hangs. Under GNAT GPL 2006, it works provided I avoid calling different partitions in a chain. Did you get the example running? I use three separate windows - one for each partition, so you can see any messages and watch for termination. -- Adrian