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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "G.B." Newsgroups: comp.lang.ada Subject: Re: high frequency time stamping (Was: Simple Components 4.12 with MQTT implementation released) Date: Tue, 19 Apr 2016 14:59:35 +0200 Organization: A noiseless patient Spider Message-ID: References: <6d3b7ac5-8fc6-406c-8aac-947d25a78249@googlegroups.com> <7e104831-cec6-4b04-8671-17e8bdcdae9c@googlegroups.com> Reply-To: nonlegitur@futureapps.de Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 19 Apr 2016 12:56:12 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="b96887e80893c84a90c3007226ca0d1c"; logging-data="31303"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jrhbjjK3HlJJtzMo41FrPsljp+Z5kg/Q=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 In-Reply-To: Cancel-Lock: sha1:U5sIIvTgbo4aKBtZYvPsBZSEP2U= Xref: news.eternal-september.org comp.lang.ada:30194 Date: 2016-04-19T14:59:35+02:00 List-Id: On 19.04.16 14:43, Dmitry A. Kazakov wrote: > It is a value and a time stamp, because data are oversampled. There is > no way a conventional OS could respond to each change at this rate. Is it possible to have a volatile variable T representing some point in time and a CAS discipline so that 1. there is one task that updates T at regular intervals and 2. another task that reads T for stamping items more frequently than the first would write updates?