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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Read-write mutex sometimes fails on deadlock Date: Sun, 12 Nov 2017 06:21:20 +0100 Organization: Adalog Message-ID: References: <4502cd60-b843-4ace-99da-d716fc455635@googlegroups.com> <14ca8f28-a689-4431-9122-81a1c504569c@googlegroups.com> <1810768e-7846-43ca-9871-b2468a060c37@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 12 Nov 2017 05:21:18 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="cb189d3c4feaa4bc37fc78791a3e5527"; logging-data="3674"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19a0jdlgelp13GaRDAu81yU" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 In-Reply-To: <1810768e-7846-43ca-9871-b2468a060c37@googlegroups.com> Content-Language: fr X-Mozilla-News-Host: news://reader80.eternal-september.org Cancel-Lock: sha1:E/pvBlsDDXIEUFEFftPmAmPkW3Q= Xref: feeder.eternal-september.org comp.lang.ada:48832 Date: 2017-11-12T06:21:20+01:00 List-Id: Le 12/11/2017 à 05:33, Robert Eachus a écrit : > On Monday, November 6, 2017 at 1:31:07 PM UTC-5, Simon Wright wrote: >> Robert Eachus writes: >> >>> entry Write (D: in Data) is >>> begin >>> The_Data := D; >>> Some_Data := True; >>> Print(D); >>> delay 0.1; >>> end Write; >> > Having said that, the delay 0.1 is very naughty, but on most hardware it will be implemented as a counting loop. (Make it delay 0.0001 if that makes you happier. ;-) It is not illegal, and is only erroneous if it results in a scheduling action. > Delay is potentially blocking operation, so this is definitely a bounded error. But it is allowed for a bounded error situation to give the proper result... -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr