[edit] aliases: ConditionVariable 要約 スレッドの同期機構の一つである状態変数を実現するクラスです。 以下も ConditionVariable を理解するのに参考になります。 https://ruby-doc.com/docs/ProgrammingRuby/html/tut_threads.html#UF Condition Variable とは あるスレッド A が排他領域で動いていたとします。スレッド A は現在空いていないリソースが必要になったので空くまで待つことにしたとします。これはうまくいきません。なぜなら、スレッド A は排他領域で動いているわけですから、他のスレッドは動くことができません。リソースを空けることもできません。スレッド A がリソースの空きを待っていても、いつまでも空くことはありません。 以上のような状況を解決するのが Co