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


Groups > comp.lang.python > #68772

Re: terminate a program gracefully from a thread

References <CAOuJsMny-DV2kLS2EU1=FtHr6zkMH__-Q-2z8_-wnaSKmap8iA@mail.gmail.com> <lgk2ad$end$1@ger.gmane.org>
From Jabba Laci <jabba.laci@gmail.com>
Date 2014-03-22 14:19 +0100
Subject Re: terminate a program gracefully from a thread
Newsgroups comp.lang.python
Message-ID <mailman.8397.1395494412.18130.python-list@python.org> (permalink)

Show all headers | View raw


> You need a flag to indicate that a particular invocation is the
>  dummy one (background). So use that same flag either to suppress
>  starting the thread,  or to avoid the unwanted raw_input.
>
> Alternatively,  rethink the need to preload at boot time.  Any
>  caching the OS does is likely to only last a few minutes,
>  depending on load. So maybe you can make the real load seem to be
>  quicker by displaying the gui right away,  but doing the
>  time-consuming part in a thread.

Hi,

Thanks for the idea. Right, if it's started in suicide mode, then
there is no need to enter the raw_input.

Thanks,

Laszlo

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: terminate a program gracefully from a thread Jabba Laci <jabba.laci@gmail.com> - 2014-03-22 14:19 +0100

csiph-web