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,eab7c2a03bcc6f3 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.224.130.195 with SMTP id u3mr22879308qas.1.1367665176710; Sat, 04 May 2013 03:59:36 -0700 (PDT) Path: y6ni7343qax.0!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!nrc-news.nrc.ca!News.Dal.Ca!news.litech.org!news.stack.nl!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Synchronization: delays x hardware timers Date: Fri, 26 Apr 2013 18:03:39 +0200 Organization: cbb software GmbH Message-ID: <1u15t64815v2d.m6dfzpj4eo8b.dlg@40tude.net> References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: rHWOzyHApalsT5sEUcbvVQ.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: 2013-04-26T18:03:39+02:00 List-Id: On Fri, 26 Apr 2013 08:27:39 -0700 (PDT), Rego, P. wrote: > The question is which is the best way to implement the . Calling an entry of a protected object (waitable event object) or else doing it synchronously from a callback. > I think that if I use a simple delay it's very enough; and since I do not > have a hard real-time deadline, I even do not need to use delay until. A > coleague argued with me saying that I must use hardware timers any case. > Personally I think it's an unnecessary use of hardware resources. Which is not different from delay. When a task does delay it is put to sleep to be awaken by the scheduler. The scheduler is triggered by a timer interrupt. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de