Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!+ From: Richard.Draves@CS.CMU.EDU Newsgroups: comp.os.mach Subject: Re: cthread termination (was: notification of thread death) Message-ID: Date: 22 Feb 90 07:16:30 GMT References: <374@kgw2.bwi.WEC.COM> Distribution: usa Organization: Carnegie Mellon, Pittsburgh, PA Lines: 21 In-Reply-To: <374@kgw2.bwi.WEC.COM> Excerpts from netnews.comp.os.mach: 16-Feb-90 cthread termination (was: n.. Eric Hammond@kgw2.bwi.WE (1351) > 1) Is there any way for a cthread to terminate unexpectedly (i.e., > without doing an explicit cthread_exit() or returning from the > cthread's top level function)? No, your cthreads will only terminate via cthread_exit(), possibly implicitly if they return from their top-level function. > 2) I understand the problem with thread_terminate()ing a thread out > from under the cthread library implementation. Is there any way > to do a cthread_terminate()? How can one cthread terminate > the execution of another cthread in a task? Is it necessary to > set up a "please kill yourself" message or to use similar > inter-cthread cooperation? There is no mechanism for gunning down another cthread. Your cthreads have to cooperate. Rich