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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,470e89e7a6575920 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 13 Jul 2008 18:35:55 -0500 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Periodic tasks - organization References: <86589099-2e4e-4b7d-ace0-6f1f864a3fa2@y21g2000hsf.googlegroups.com> X-Newsreader: Tom's custom newsreader Message-ID: <36mdne5l28jGDOfVnZ2dnUVZ_rjinZ2d@comcast.com> Date: Sun, 13 Jul 2008 18:35:55 -0500 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 71.202.183.17 X-Trace: sv3-1oXBRWjysFvsci1uN38oSFI2/ZPwiMzHlIo4PtA/mDmvhs2yIa6meA99AVsB4eINhSNovW+L9IUDkis!P/fbRuU6TcMMYyOzMhtfEwcChv4PBvB1U2mx67GQNeTFuPhOTgQ5gos1Tura9dvvomzUk791uCR+!8VsbzhxO3VeEtgsHErsc5Wx85kCfRQ== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net 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.39 Xref: g2news1.google.com comp.lang.ada:1140 Date: 2008-07-13T18:35:55-05:00 List-Id: >What can you say about these two approaches? Which would you recommend >and when? If the task is inherently periodic (updating a wall clock display, for instance), use the simple periodic form. If the task responds to some, not necessarily periodic, event, then program it that way. The only legitimate reason to force the program into an unnatural form would be if some so-far-unmentioned constraint (e.g. other interfaces to the task, or performance, or management decree) required that.