🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.mach
Article #1294

Re: cthread termination (was: notification of thread death)

#1294
From: Richard.Draves
Date: Thu, 22 Feb 1990 07:16
21 lines
1373 bytes
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
Technical Details
Message-ID: <UZst7Cy00hYP8k2NRJ@cs.cmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!<UNAUTHENTICATED>+
References: <374@kgw2.bwi.WEC.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!<UNAUTHENTICATED>+
From: Richard.Draves@CS.CMU.EDU
Newsgroups: comp.os.mach
Subject: Re: cthread termination (was: notification of thread death)
Message-ID: <UZst7Cy00hYP8k2NRJ@cs.cmu.edu>
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>