On Sun, Apr 10, 2022 at 7:50 AM Henry Rich <[email protected]> wrote: > Killing a thread is going to be a problem. What do you do with the > values the thread was using? They will never be freed. You can't just > free all the memory the thread allocated, because some of it may be > values now being used by other threads.
Conceptually, the implementation would not kill the thread: you would ask it to shut down. A variation on the current "break" mechanism would likely be the right approach (assuming it had been extended to allow for some argument indicating which thread(s) to shut down -- though shutting down all threads on break might be an acceptable workaround). If the thread was "out of control" such that it could not accept 'break', that would probably require restarting J. I hope this helps, -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
