Multithreaded Squeak
Ned Konz
ned at bike-nomad.com
Wed Nov 27 16:05:56 UTC 2002
On Wednesday 27 November 2002 07:05 am, Martin Drautzburg wrote:
> goran.hultgren at bluefish.se writes:
> > "...is because processes are partially preemptive. A running
> > process will not be interrupted by another process of equal or
> > lesser priority. A process will keep running until it does a time
> > consuming operation such as waiting on a socket read or on an
> > instance of Delay, or the process explicitly gives up control, or
> > a higher priority process is ready to run."
>
> Does that mean if all a process does it loop, then there is no way
> to interrupt it ? If I run
> [true] whileTrue: [nil]
> it locks up the UI but I can still gain control with Alt-.
It locks up the UI because you're doing it in the UI thread.
If you do this:
[[true] whileTrue ] fork
then you'll get another Process at the same priority as the UI. But
you can still operate the UI, though very slowly.
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|