Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.arch.embedded > #23608
| From | Don Y <blockedofcourse@foo.invalid> |
|---|---|
| Newsgroups | comp.arch.embedded |
| Subject | Re: Forewarning of resource inadequacies |
| Date | 2016-04-13 06:51 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <nelitr$l86$1@dont-email.me> (permalink) |
| References | <ne6icd$o8q$1@dont-email.me> <op.yfuqawrbj0diun@thanatos.lan> |
On 4/13/2016 2:36 AM, Boudewijn Dijkstra wrote:
>> regarding addressing
>> potential ("current") resource inadequacies when starting a task
>> (or, offering that capability *to* start that task to a user)?
>
> Depends who is initiating the task and who is responsible for resource
> availability.
>
> 1. In an open user-controlled environment, leave it to the user. This
> means giving the user the tools to determine resource usage and the option
> to shoot himself in the foot.
The issue isn't to prevent the user from shooting himself in the foot;
rather, the problem is not SURPRISING him at some later time that an
action he (appeared to) successfully initiated has not completed as he
had expected. Because something changed -- possibly the result of
a subsequent (or EARLIER, still running!) action on his part or that
of another.
We've all been "disappointed" to come back to some long-running,
computer-related activity at a later time -- only to discover that it has
abended, "unexpectedly". And, often ANGRY if the reason for this could
have been known when we STARTED the activity! (e.g., not enough space
on a device, file size exceeds maximum file size supported by targeted
filesystem, daily scheduled job at 00:00, etc.)
This suggests locking those resources at the start of the operation.
But, that can needlessly prevent other tasks from sneaking in, using
those resources and RELEASING them before they ACTUALLY are needed
by the first task.
E.g., don't lock up the printer for the output you'll be generating
an hour from now cuz other tasks might want to print in the meantime!
[OTOH, if you leave the printer "available", you risk it running out
of paper from use by one of those other intervening tasks]
Bottom line, I don't see any one-size-fits-all solution. The fact that
tasks can take prolonged periods of time exacerbates the problem as it
allows the problem and its notification to be decoupled (in time) from
the task initiation -- the original user may no longer be "present"
for that notification!
"The timer went off."
"When??"
"Oh, about 15 minutes ago."
"Did you take the bread out of the oven?"
"No, I didn't realize you were baking!"
"Didn't you wonder why the timer was on and the oven was hot?"
"Well, no."
"Then why not tell me about it WHEN it happened? Isn't a timer
the sort of thing/event that has an immediacy associated with it?"
etc.
> 2. In more closed/rigid environments, make a best effort to inform the
> user. If system damage is possible, prevent it.
>> Again, these are only examples. The question is what criteria do you use
>> for alerting (and/or inhibiting!) the user when you know that it is likely
>> that he won't be able to perform the desired task WITH THE SYSTEM IN ITS
>> CURRENT STATE -- and *when* do you impose those notifications?
Back to comp.arch.embedded | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Forewarning of resource inadequacies Don Y <blockedofcourse@foo.invalid> - 2016-04-07 14:10 -0700
Re: Forewarning of resource inadequacies George Neuner <gneuner2@comcast.net> - 2016-04-08 07:08 -0400
Re: Forewarning of resource inadequacies Don Y <blockedofcourse@foo.invalid> - 2016-04-08 11:58 -0700
Re: Forewarning of resource inadequacies George Neuner <gneuner2@comcast.net> - 2016-04-11 01:47 -0400
Re: Forewarning of resource inadequacies Don Y <blockedofcourse@foo.invalid> - 2016-04-11 02:06 -0700
Re: Forewarning of resource inadequacies George Neuner <gneuner2@comcast.net> - 2016-04-12 03:22 -0400
Re: Forewarning of resource inadequacies Don Y <blockedofcourse@foo.invalid> - 2016-04-12 04:22 -0700
Re: Forewarning of resource inadequacies Dimiter_Popoff <dp@tgi-sci.com> - 2016-04-12 15:39 +0300
Re: Forewarning of resource inadequacies Don Y <blockedofcourse@foo.invalid> - 2016-04-12 07:55 -0700
Re: Forewarning of resource inadequacies "Boudewijn Dijkstra" <sp4mtr4p.boudewijn@indes.com> - 2016-04-13 11:36 +0200
Re: Forewarning of resource inadequacies Don Y <blockedofcourse@foo.invalid> - 2016-04-13 06:51 -0700
Re: Forewarning of resource inadequacies "Boudewijn Dijkstra" <sp4mtr4p.boudewijn@indes.com> - 2016-04-14 14:43 +0200
Re: Forewarning of resource inadequacies Don Y <blockedofcourse@foo.invalid> - 2016-04-14 06:37 -0700
Re: Forewarning of resource inadequacies "Boudewijn Dijkstra" <sp4mtr4p.boudewijn@indes.com> - 2016-04-15 14:24 +0200
Re: Forewarning of resource inadequacies Don Y <blockedofcourse@foo.invalid> - 2016-04-15 12:31 -0700
csiph-web