embedded python - cancel "while 1: pass"

Steve Holden sholden at holdenweb.com
Thu Jan 4 13:43:06 EST 2001


Oleg Broytmann <phd at phd.pp.ru> wrote in message
news:mailman.978625931.30488.python-list at python.org...
> On Thu, 4 Jan 2001, Warren Postma wrote:
> > How about uninterruptible C code called via python, such as this:
> >
> > print 2L ** 2L ** 256
> >
> > I've let this run for 15 minutes and it didn't complete. There is no
> > apparent way to abort it either, as it spends its time in long_mult and
the
> > Python scheduler doesn't even run. It must complete eventually. Any idea
how
> > long long_mult and long_pow will take to complete this?
> >
> > In that case, I think I'm still stuck with the Three Finger Salute
method
> > (reboot).
>
>    Wow, it seems you are a Windows guy! Why not just kill the process
> instead of rebooting everything?
>
And it seems you aren't!  CTRL-ALT-DEL brings up either the Task Manager (in
NT) or the Close Program window (in 95 and 98).  Either of these allow you
to selectively terminate a single misbehaving application.

regards
 Steve






More information about the Python-list mailing list