Julian Bradfield writes:
On 2013-01-17, Stephen J. Turnbull <stephen(a)xemacs.org> wrote:
> > I was trying hard to think of one - what's an example?
>
> Interrupting an infloop. Printing out a progress report.
Nope. To interrupt an infloop, you should be measuring process virtual
time (SIGVTALRM) , not realtime.
That depends on what resource you're conserving, and/or on your
heuristic for deciding that she's a witch and needs to be burned. If
it's something related to user attention, realtime is relevant. If
it's something related to asynchronous I/O, realtime is relevant. If
it's CPU time, virtual time is the obvious criterion. (N.B. I mean
that "obvious criterion" is a much stronger claim than "relevant.")
I also can't think of any progress reports that I want at
running-time
intervals rather than realtime intervals!
Again, it's a heuristic for a certain amount of processing, delivered
at intervals convenient for the human operator. For CPU-bound tasks,
I suppose the virtual time might be preferred in many applications,
but even that depends on how important convenience for the operator is.
It occurs to me that with a bit of luck, the problem will not be an
issue, because the auto-save timer fires every three minutes, which
should cause other timers to be expired, and that's often enough for
my purposes. (I was worried that my VM alarm facility would tell me 9
hours later about something I had to do that morning!)
OK, but if you decide not to do anything about it, would you file an
issue briefly explaining what you've learned so far? (I'd do it, but
you know more about this than I do at the moment.)
Thanks!
Steve
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta