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.129.4.23 with SMTP id 23mr7106773ywe.9.1464280899703; Thu, 26 May 2016 09:41:39 -0700 (PDT) X-Received: by 10.157.24.88 with SMTP id t24mr159745ott.18.1464280899606; Thu, 26 May 2016 09:41:39 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!88no6468069qga.1!news-out.google.com!h125ni1994ita.0!nntp.google.com!q6no1601451igz.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 26 May 2016 09:41:39 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=174.112.148.38; posting-account=cUi90woAAADTaOISowbbHM8GUD0-opJO NNTP-Posting-Host: 174.112.148.38 References: <25c43463-47ca-4021-82ee-299e6a075faa@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Advice, tasking and hardware From: patrick@spellingbeewinnars.org Injection-Date: Thu, 26 May 2016 16:41:39 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:30485 Date: 2016-05-26T09:41:39-07:00 List-Id: Hi Guys Thanks for the feedback this is very helpful :) I work with scientific instruments. I have been trying to write an applicat= ion to control this instrumentation on and off for many years. It's back on= . I doubt that any of the software I see in my industry is written in Ada, th= ere is no real exception handling. Joel is a an exception, they work with h= igh end mass spectrometers and were featured in an Adacore commercial. If there is a hardware failure of any kind software in this business just l= ocks up silently or there is a non-descriptive error like "instrument error= ", even when there are multiple instruments networked into a system. Does this approach sound logical for a first attempt with tasking: I could write a mostly single threaded application that used tasking for er= ror detection/handling only. I could queue tasks. One would be called just before calling into a driver.= The task would delay for a given amount of time and if the call to the dri= ver blocked unexpectedly the task would reach a point were it will notify t= he user with a detailed error message. If the driver call did not block ano= ther task would be called to signal that the driver call completed on time = and the first task would be notified at rendezvous that it was on time and = the tasks would queue again and wait for the next driver call. This may not be a full use of Ada but it would be better then what's curren= tly being used on the market in my industry. Thanks again-Patrick