Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #68772 > unrolled thread
| Started by | Jabba Laci <jabba.laci@gmail.com> |
|---|---|
| First post | 2014-03-22 14:19 +0100 |
| Last post | 2014-03-22 14:19 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: terminate a program gracefully from a thread Jabba Laci <jabba.laci@gmail.com> - 2014-03-22 14:19 +0100
| From | Jabba Laci <jabba.laci@gmail.com> |
|---|---|
| Date | 2014-03-22 14:19 +0100 |
| Subject | Re: terminate a program gracefully from a thread |
| Message-ID | <mailman.8397.1395494412.18130.python-list@python.org> |
> 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 top | Article view | comp.lang.python
csiph-web