From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R.Carter" Newsgroups: comp.lang.ada Subject: Re: Is a Boolean type inherently atomic ? Date: Fri, 12 May 2023 14:53:24 +0200 Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 12 May 2023 12:53:25 -0000 (UTC) Injection-Info: dont-email.me; posting-host="775151371d2c19a04e53995a45be44f4"; logging-data="1547719"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+E3MdKxEpeLs0YxvWcDYZb+VOf99xmNfQ=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Cancel-Lock: sha1:sbaIY7jdwJ3KjG7eHfc2nZSj0JQ= In-Reply-To: Content-Language: en-US Xref: news.eternal-september.org comp.lang.ada:65211 List-Id: On 2023-05-12 14:17, Rod Kay wrote: >    Surely only the least significant bit of the least significant byte is > relevant and so the value cannot be garbled by one task writing and another > reading at the same time ? Boolean types with other representations using multiple bits are possible, so your assumption doesn't hold. -- Jeff Carter "Many times we're given rhymes that are quite unsingable." Monty Python and the Holy Grail 57