On 12/18/2010 11:59 AM, Holger Hans Peter Freyther wrote:
> On 12/18/2010 11:38 AM, Holger Hans Peter Freyther wrote:
>> Hi all,
> 
>>
>> To work around such sticky processes I have decided to use a [proc
>> isTerminated] whileFalse: [proc terminate] construct.
>>

and one more related question. Is there something about Semaphores and
terminated processes? I have no good test case yet but I think.

A:
[
        [ ] ensure: [
                mutex critical: ['Sometimes never entered' printNl. 
allProcesses remove:
Processor activeProcess].
        ]
] fork

B:
mutex criticial: [allProcesses do: [:each | each terminate ]].



I think sometimes this statement will not executed when the process is being
terminated. What I am trying to do is to have a cleanup handler for processes.
E.g. to make a process remove itself from a list of processes.


Is there a better way to achieve this goal?

_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to