2005-02-03から1日間の記事一覧

#forkAndWait

フォークさせた処理の完了を待つためのセマフォの名前に、semaphore1、semaphore2(追記: forGoingOn に変更済み)では味気ないので、他に何かいいのがないかなぁ…と #signal の senders of it (alt-/cmd-n) を眺めていたら、セレンディプタスに BlockConte…

マルチスレッド

ふと思い立って Squeak の Smalltalk にあるマルチスレッド*1機能を使って遊んでいたときのこと。 stream stream _ String new writeStream. ($1 to: $3) do: [: each | stream nextPut: each]. ($a to: $c) do: [: each | stream nextPut: each]. ^ stream …