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 X-Google-Thread: a07f3367d7,3025dd6d917b499c X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.180.94.98 with SMTP id db2mr3128048wib.2.1350352572536; Mon, 15 Oct 2012 18:56:12 -0700 (PDT) Path: q10ni65138176wif.0!nntp.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.panservice.it!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Ada, the best language with the not-so-best tool chain Date: Tue, 9 Oct 2012 19:23:29 +0200 Organization: cbb software GmbH Message-ID: <1jsruyae8xa33$.1587seeni7i1s.dlg@40tude.net> References: <5072c9ae$0$6562$9b4e6d93@newsspool4.arcor-online.net> <4keoa6epdxt7.1nnwxy7v7ar90.dlg@40tude.net> <5072dc68$0$6554$9b4e6d93@newsspool4.arcor-online.net> <1f7cmfp1l65w1.1deog8cfxbs0u$.dlg@40tude.net> <5072e37a$0$6556$9b4e6d93@newsspool4.arcor-online.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: 9A8bJrx4NhDLcSmbrb6AdA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-10-09T19:23:29+02:00 List-Id: On Tue, 09 Oct 2012 12:50:53 -0400, Dennis Lee Bieber wrote: > On Tue, 9 Oct 2012 11:33:07 +0200, "Dmitry A. Kazakov" > declaimed the following in comp.lang.ada: > >> On Mon, 8 Oct 2012 20:16:12 +0000 (UTC), Simon Clubley wrote: >> >>> would not be suitable if you have hard real >>> time requirements (although there are various RT extensions which might >>> be suitable in some circumstances). >> >> Huh, are you building bombs, guys? (:-)) For most physical processes 1ms, >> even 10ms cycle is more than enough. Linux can easily deliver you 1ms >> cycle. >> > Well, I did have an assignment a decade ago that actually would have > worked better with an off-system processor. A Win98SE laptop is > definitely not a real-time processor -- even with the program running at > the highest available priority class the OS kept interrupting. I don't remember Win98, wasn't it actually DOS 6.2 like Win95 before it? Anyway, you can have up to 5ms under Windows, starting from Win2K. There are some tricks, in particular the time slice should be set at 1ms. 10ms is the default, which is the main reason for the "jitter." Setting the process at the "RT priority" is not really needed. And yes, it won't prevent drivers from preempting the process. Actually we do lot of control straight under Windows. You may wonder but it works fine. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de