Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #20934
| From | Knute Johnson <nospam@knutejohnson.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Recommended way to handle ClosedByInterruptException? |
| Date | 2013-01-03 15:51 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <kc55ht$ske$1@dont-email.me> (permalink) |
| References | <2b4da3ee-0ca3-456d-ae92-5b36e6e1a769@googlegroups.com> <kc2v2b$1vq$1@dont-email.me> <cbd2def3-2198-49a5-b065-c81b26b7f82f@googlegroups.com> |
On 1/3/2013 1:12 PM, raphfrk@gmail.com wrote: > The idea is to have a thread that handles the actual writing to > disk. > > On shutdown, the thread is interrupted. It then writes any remaining > data and then the thread dies. > > However, with this, if the a .map() call is made after the interrupt, > the files closes. > I think the answer is self evident then, don't interrupt it. -- Knute Johnson
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Recommended way to handle ClosedByInterruptException? raphfrk@gmail.com - 2013-01-02 18:43 -0800
Re: Recommended way to handle ClosedByInterruptException? Knute Johnson <nospam@knutejohnson.com> - 2013-01-02 19:48 -0800
Re: Recommended way to handle ClosedByInterruptException? raphfrk@gmail.com - 2013-01-03 13:12 -0800
Re: Recommended way to handle ClosedByInterruptException? Knute Johnson <nospam@knutejohnson.com> - 2013-01-03 15:51 -0800
csiph-web