R: Multitasking is possible?
Alessandro Manunza
manunza at elettro1.unica.it
Wed Feb 4 11:21:03 UTC 1998
----------
> Da: Kohler Markus <kohlerm at betze.bbn.hp.com>
> A: squeak at cs.uiuc.edu
> Oggetto: Re: Multitasking is possible?
> Data: mercoledì 4 febbraio 1998 12.00
>
> Try this
>
> A _ 0.
> B _ 0.
> [ [A < 50] whileTrue:[
> Transcript show:'AAA';cr.
> Processor yield.
> B_ B+1.].
> ] fork.
>
> [ [B < 50] whileTrue:[
> Transcript show:'BBB';cr.
> Processor yield.
> A _ A+1.].
> ] fork.
>
> Basically you have to give other processes a chance to run.
> This is what Processor yield does.
>
> Markus
>
> --
>
+---------------------------------------------------------------------------
-+
> | Markus Kohler Hewlett-Packard
> GmbH |
> | Software Engineer OpenView Software
> Division |
> | IT/E Response
> Team |
>
+---------------------------------------------------------------------------
-+
>
Thank you very much
Alessandro
More information about the Squeak-dev
mailing list
|