Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch.embedded > #23613

Re: Forewarning of resource inadequacies

From Don Y <blockedofcourse@foo.invalid>
Newsgroups comp.arch.embedded
Subject Re: Forewarning of resource inadequacies
Date 2016-04-14 06:37 -0700
Organization A noiseless patient Spider
Message-ID <neo6fr$rha$1@dont-email.me> (permalink)
References <ne6icd$o8q$1@dont-email.me> <op.yfuqawrbj0diun@thanatos.lan> <nelitr$l86$1@dont-email.me> <op.yfwtm7ojj0diun@thanatos.lan>

Show all headers | View raw


On 4/14/2016 5:43 AM, Boudewijn Dijkstra wrote:
> Op Wed, 13 Apr 2016 15:51:10 +0200 schreef Don Y <blockedofcourse@foo.invalid>:
>> On 4/13/2016 2:36 AM, Boudewijn Dijkstra wrote:
>>
>> [...] 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. [...]
>>
>> This suggests locking those resources at the start of the operation.
>
> No, it suggests reserving them. For a complex operation, it suggests locking
> until the exact resource needs have been determined.

This ties up those resources for the length of the operation -- preventing
other similar (unprivileged) tasks from using those resources even if their
use may be brief and transitory -- not jeopardizing to the execution of this
first task.

I.e., that's the nature of the problem:
- if you want to be able to tell the user that his task *will* execute,
   then you have to impose the same sorts of reservations that you would
   for privileged tasks (i.e., at the expense of other tasks that the user may
   want to execute -- you can't risk "gambling" that things will work out
   to the satisfaction of all his tasks)
- if you want to maximize potential utility of resources (for an indeterminate
   set of possible user tasks), then you can't give assurances at task
   activation -- because you can't (don't want to) follow up by imposing
   those restrictions on the resource use

I.e., the potential for maximizing utilization comes with the inherent risk
of a potential (future) shortage; if you go that route, you must be willing
to inform the user of that possibility WHEN (if) it later occurs -- even if
that is impractical.

That's the "no free lunch" aspect.

So, even adding heuristics to implement "partial" gambling (to maximize
utilization) -- i.e., make those guarantees for long (whatever that
means) operations where the user may walk away, lose interest or forget
about the task's activation but NOT for short-lived operations where
you HOPE the user is still around for any potential notification.

I.e., the user doesn't have a consistent interface/relationship with the
system:  sometimes he KNOWS that a task will complete simply because it
was accepted and started; other times, he might be surprised to be
BELATEDLY (though not *too* late?) informed that a task that HAD started
won't be able to complete.

The user has to "learn" how to differentiate between these two types of
tasks.  Or, the system must be able to tell him (at or prior to
activation).

*Or*, the user must be given the OPTION of "that guarantee":
      "This is going to take a while to complete.  I can guarantee
      completion but only at the expense of other tasks that you may
      elect to activate (or, have previously activated 'conditionally').
      Would you like to take advantage of this capability?"

But, again, this makes some tasks different (in terms of what the user
experiences when activating them).  And, no way for the user to know
which tasks those might be (unless I consistently ask -- even for short-lived
tasks that will PROBABLY be able to complete unimpeded).

It's a sort of:
    "Are you sure you want to do that?"

Back to comp.arch.embedded | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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