Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Sending an interrupt to the frontend?
Replies: 28   Last Post: Jul 26, 2012 3:32 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
James Stein

Posts: 127
Registered: 5/8/10
Re: Sending an interrupt to the frontend?
Posted: Jul 10, 2012 3:18 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I have experienced the same (or similar) problem.

For me, it usually occurs unexpectedly, in which case it is likely that I
have not recently saved the notebook(s) before the evaluation that goes
awry. After pressing command-period and the menu item "Quit Kernel"
repeatedly, to no effect, it seems there is no escape except the Macintosh
"Force Quit" Mathematica, which is always irritating because of the lost
work and time.

With years of software experience, I understand why efficient computational
loops cannot be monitoring a flag or looking for an interrupt; nevertheless
it would be nice to have a mechanism to stop the kernel without stopping
the FrontEnd. This would -- I think -- resolve an occasional situtation I
experience where the Kernel is outputting information faster than the
FrontEnd can format and display it -- so the FrontEnd seems too busy to
accept an interrupt and the BackEnd (Kernel) seems unstoppable except via
the FrontEnd.

Am I understanding the situation? Perhaps not...



On Mon, Jul 9, 2012 at 9:40 PM, W Craig Carter <ccarter@mit.edu> wrote:

>
> Hello Mathgroup,
>
> This is a question about frozen frontend behavior.
>
> In development stages, one of my frequent mistakes is to send the
> frontend something that takes forever to dynamically update---at least
> that is what I believe what is happening for most of the "freezing"
> occurrences. For MacOs, this is often signaled by a "Formatting
> Notebook Contents" window.
>
> I wonder if anyone has found a method to send the front end a message to
> stop dynamically updating while in an unresponsive state? I've various
> versions of kill -s signal (i.e., signal = INT) from a terminal in
> MacOSx, but never with success.
>
> I suppose that having the front end query the operating system for
> interrupt requests would create a lot of overhead. However, I wonder if
> a method to force the frontend to make an operating system query with a
> user-specified time interval might be possible?
>
> W Craig Carter
>



Date Subject Author
7/10/12
Read Re: Sending an interrupt to the frontend?
James Stein
7/11/12
Read Re: Sending an interrupt to the frontend?
John Fultz
7/12/12
Read Re: Sending an interrupt to the frontend?
Yves Klett
7/14/12
Read Re: Sending an interrupt to the frontend?
David Bailey
7/15/12
Read Re: Sending an interrupt to the frontend?
Alexey
7/15/12
Read Re: Sending an interrupt to the frontend?
Ralph Dratman
7/18/12
Read Re: Sending an interrupt to the frontend?
David Bailey
7/19/12
Read Re: Sending an interrupt to the frontend?
Michael Weyrauch
7/22/12
Read Re: Sending an interrupt to the frontend?
David Bailey
7/19/12
Read Re: Sending an interrupt to the frontend?
leigh pascoe
7/20/12
Read Re: Sending an interrupt to the frontend?
Bill Rowe
7/20/12
Read Re: Sending an interrupt to the frontend?
W. Craig Carter
7/20/12
Read Re: Sending an interrupt to the frontend?
James Stein
7/23/12
Read Re: Sending an interrupt to the frontend?
James Stein
7/23/12
Read Re: Sending an interrupt to the frontend?
George Woodrow III
7/23/12
Read Re: Sending an interrupt to the frontend?
Ralph Dratman
7/23/12
Read Re: Sending an interrupt to the frontend?
Michael Weyrauch
7/23/12
Read Re: Sending an interrupt to the frontend?
Ralph Dratman
7/25/12
Read Re: Sending an interrupt to the frontend?
Ralph Dratman
7/26/12
Read Re: Sending an interrupt to the frontend?
Yves Klett
7/11/12
Read Re: Sending an interrupt to the frontend?
James Stein
7/11/12
Read Re: Sending an interrupt to the frontend?
Roland Franzius
7/12/12
Read Re: Sending an interrupt to the frontend?
W. Craig Carter
7/12/12
Read Re: Sending an interrupt to the frontend?
Ralph Dratman

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2013. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.