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. ]