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 X-Received: by 10.236.126.103 with SMTP id a67mr9428841yhi.4.1409965811833; Fri, 05 Sep 2014 18:10:11 -0700 (PDT) Path: buffer1.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!m5no6166453qaj.0!news-out.google.com!aw9ni270igc.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 05 Sep 2014 20:10:11 -0500 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: Strange behavior Date: Fri, 05 Sep 2014 21:10:49 -0400 Organization: IISS Elusive Unicorn Message-ID: References: <6967b17b-acb9-4b44-b21a-6ddcab1e1065@googlegroups.com> <2c395fc3-344c-45b3-9fd2-94819d6c0f26@googlegroups.com> X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES MIME-Version: 1.0 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 108.73.118.117 X-Trace: sv3-FSdAGmW/fKR1ZzSDr+h41Yfl5pX/4x2kSVBAaE+/9fzqvbXRso3qT0L6z5nSEttIGiBe1v7Sr8yKYKI!G8kee4DKsO/f6EPmK5Oo6oJrkw5QYtRw0ABYcf+Z7gROatmH6uHGMdOyi2vPpBAAH8Hpfs6HXUzO!qO20mRyk9gVuX2ztxvtMI306AGHs X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2328 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Xref: number.nntp.dca.giganews.com comp.lang.ada:188888 Date: 2014-09-05T21:10:49-04:00 List-Id: On Fri, 5 Sep 2014 13:40:29 -0700 (PDT), Laurent declaimed the following: > >Yes I understand that. The following examples in the book actually are about this problem and that's the introduction for the protected types. I was just astonished that a so simple program can already behave so unpredictable. Ok the book was written in 1998 so at this time the result was probably different. 1998 was the era of the Pentium II with MMX (multimedia extension) operations; a hyper-threaded Pentium 4 didn't show up until 2002, in the hands of the rich and powerful. While the Ada language spec may only require physical I/O at the character level, I suspect many compilers/run-times are deferring to O/S I/O functions, and those functions may treat a full string as an indivisible output operation... but separating a string Put from a New_Line makes that /two/ I/O operations, and the O/S is free to task switch between them. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/