Threads or suggestion

Jason Dufair jase at dufair.org
Thu Aug 8 20:38:04 UTC 2002


John M McIntosh wrote:

>> Hi all -
>>
>> I poked around for threads in Squeak and didn't find much.  I'm 
>> looking for suggestions.
>
>
>
> Try
>
> ProcessBrowser  open
>
> option click to turn auto-update on.
>
>
> Then browse the methods
> BlockContext fork
> BlockContext forkAt:
>
> Let's setup an infinite loop and fork it off in the back ground.
> Use inspect so we've an easy handle to the Process instance
>
> [[true] whileTrue: []] forkAt: Processor userBackgroundPriority
>
> do a self terminate on the inspected process to kill it.
> or option-click and pick a command from the ProcessBrowser menu.
>
> Also see the class Process and the fun things you can do
>
> ie sending debug to an instance of Process.
>
>
> Many years ago when I was working on a Smalltalk server application 
> that handled Corba events I had a 'panic' method that would go out and 
> hunt down all the corba related processes and issue a debug request 
> against them all. Perfect for diagnostics.

Exactly what I was looking for!  Thanks all!

-- 
Jason Dufair - jase at dufair.org
http://www.dufair.org/
"You teach a child to read, and he or her will be able
to pass a literacy test."
-- George Bush, Jr. - Townsend, Tenn., Feb. 21, 2001






More information about the Squeak-dev mailing list