comp.lang.ada
 help / color / mirror / Atom feed
From: patrick@spellingbeewinnars.org
Subject: Re: Advice, tasking and hardware
Date: Thu, 26 May 2016 09:41:39 -0700 (PDT)
Date: 2016-05-26T09:41:39-07:00	[thread overview]
Message-ID: <d7312808-f2e0-466c-8db5-db5bdb43e811@googlegroups.com> (raw)
In-Reply-To: <ni68f8$1t85$1@gioia.aioe.org>

Hi Guys

Thanks for the feedback this is very helpful :)

I work with scientific instruments. I have been trying to write an application 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, there is no real exception handling. Joel is a an exception, they work with high end mass spectrometers and were featured in an Adacore commercial.

If there is a hardware failure of any kind software in this business just locks 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 error 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 driver blocked unexpectedly the task would reach a point were it will notify the user with a detailed error message. If the driver call did not block another 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 currently being used on the market in my industry.

Thanks again-Patrick


  reply	other threads:[~2016-05-26 16:41 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-25 21:24 Advice, tasking and hardware patrick
2016-05-26  1:09 ` Jeffrey R. Carter
2016-05-26  8:13   ` Simon Wright
2016-05-26  7:26 ` Dmitry A. Kazakov
2016-05-26 16:41   ` patrick [this message]
2016-05-26 17:56     ` Dmitry A. Kazakov
2016-05-26 20:35     ` Jeffrey R. Carter
2016-05-26 19:35   ` Jeffrey R. Carter
2016-05-26 20:51     ` patrick
2016-05-27  7:50     ` Dmitry A. Kazakov
2016-05-27 18:00       ` Simon Wright
2016-05-27 19:06       ` Jeffrey R. Carter
2016-05-27 22:05         ` Randy Brukardt
2016-05-27 23:09           ` Jeffrey R. Carter
2016-05-27 19:13       ` Shark8
2016-05-27 20:27         ` Dmitry A. Kazakov
2016-05-27 22:27           ` Randy Brukardt
2016-05-28  6:49             ` Dmitry A. Kazakov
2016-05-28 14:38           ` Shark8
2016-05-28 15:45             ` Dmitry A. Kazakov
2016-05-28  0:25 ` rieachus
2016-05-28  1:57   ` patrick
2016-05-28  4:13   ` Jeffrey R. Carter
2016-06-01 14:37     ` rieachus
2016-06-01 19:09       ` Dmitry A. Kazakov
2016-06-06  3:33         ` rieachus
2016-06-06  7:18           ` Dmitry A. Kazakov
2016-06-07 16:53             ` rieachus
2016-06-07 20:21               ` Dmitry A. Kazakov
2016-06-08  4:06                 ` rieachus
2016-06-08  7:29                   ` Dmitry A. Kazakov
2016-06-08 12:56                     ` rieachus
2016-06-08  0:19               ` Dennis Lee Bieber
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox