Suspending/resuming processes
Andreas Raab
andreas.raab at gmx.de
Thu Dec 20 20:47:55 UTC 2007
Your interpretation of "suspended" is different from what Squeak means
by it. "Suspended" means: This process cannot be made runnable by either
a process switch or a semaphore signal.
Cheers,
- Andreas
Igor Stasenko wrote:
> Oh, and btw, can someone say, what wrong with following code?
> Is it again, my misuse? ;)
>
> | sema proc |
> sema := Semaphore new.
> proc := [ sema critical: [ Transcript show: 'Oopsie' ] ] fork.
> Processor yield.
> proc isSuspended ifFalse: [ proc suspend. proc resume. ]
>
>
More information about the Squeak-dev
mailing list
|