Browse thread
Has the thread cancellation problem evolved ?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Gordon Henriksen <gordonhenriksen@m...> |
| Subject: | Re: [Caml-list] Has the thread cancellation problem evolved ? |
On Aug 28, 2007, at 11:12, Brian Hurt wrote: > Robert Fischer wrote: > >> Brian Hurt wrote: >> >>> So what happens if I throw an infinite loop into an exception >>> handler? >> >> Now, my experience with .Net is somewhat dated, but I'm pretty >> sure it re-hangs on your loop, and signaling another abort will >> break out of your loop and continue up the chain of exception >> handlers. At least once upon a time, there was a very large >> business which I worked for that did a lot of concurrent .Net >> work, and the standard solution was to keep signaling the abort >> until the thing finally died. > > Until you get someone "clever", who does something like (in Ocaml): > > let rec do_my_work () = > try > do_a_bunch_of_work () > with > | Thread_abort_exception -> > (* Ack! Someone tried to kill me! I refuse to die! *) > do_my_work () > ;; “Doctor, Doctor! It hurts when I go like this.” You know the rest. — Gordon