Suspending/resuming processes

Randal L. Schwartz merlyn at stonehenge.com
Thu Dec 20 19:33:06 UTC 2007


>>>>> "Igor" == Igor Stasenko <siguctua at gmail.com> writes:

Igor> Just try to run given code:

Igor> | sema proc |
Igor> sema := Semaphore new.
Igor> proc := [ sema critical: [ Transcript show: 'Oopsie' ] ] fork.
Igor> Processor yield.
Igor> proc suspend.
Igor> proc resume.

Why did you send resume, when your "suspend" didn't actually suspend it?  You
should simply note that it's a process that didn't need your babysitting.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!



More information about the Squeak-dev mailing list