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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:e30a:: with SMTP id d10-v6mr1371834ith.43.1537895124371; Tue, 25 Sep 2018 10:05:24 -0700 (PDT) X-Received: by 2002:aca:5557:: with SMTP id j84-v6mr41053oib.3.1537895124284; Tue, 25 Sep 2018 10:05:24 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!news.muarf.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!209.85.166.216.MISMATCH!j6-v6no101178ith.0!news-out.google.com!c63-v6ni85ith.0!nntp.google.com!j6-v6no101173ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 25 Sep 2018 10:05:23 -0700 (PDT) In-Reply-To: <31050d1c-dfa7-495b-8169-b9b8069a5828@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=149.32.224.35; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 NNTP-Posting-Host: 149.32.224.35 References: <624734c8-0cca-4d4d-bedf-ee61428c235a@googlegroups.com> <31050d1c-dfa7-495b-8169-b9b8069a5828@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Watchdog-Timer Assignment From: Anh Vo Injection-Date: Tue, 25 Sep 2018 17:05:24 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:54423 Date: 2018-09-25T10:05:23-07:00 List-Id: On Saturday, September 22, 2018 at 4:54:59 AM UTC-7, Alex wrote: > > I looked at your codes. I did not know exactly what you meant by "part = 1" and "Part 2".=20 > >=20 > > Anh Vo >=20 > These are the instructions I have been given: > =20 > PART 2: (The one I am stuck on). >=20 > Modify F3 from Part 1 so that it occasionally takes more than 0.5 seconds= to execute. >=20 > Augment the cyclic scheduler from Part 1 with a watchdog task to monitor = F3's execution time. When F3 exceeds its deadline (0.5s), the watchdog task= should immediately print a warning message. I.e., 0.5s after start of F3, = either F3 has finished or the watchdog has printed a message. The watchdog = should let F3 finish even if it misses its deadline. >=20 > The watchdog task should be started (released) at the same time as (or ju= st before) F3 starts executing, and from that point measure the time that F= 3 uses. >=20 > When F3 misses its deadline the cyclic executive should re-synchronize so= that F1 is started at whole seconds. Could you post the original skeleton code given by your instructor. Then, w= e can work from there for Part 2. Anh Vo