We Make Multiplayer Simple Let your players enjoy an experience like in some of the world's most successful multiplayer games. Start creating your own multiplayer app
昨日に引き続き、いざ!part2なのだ。 前回では node.js と v8 の結びつきまでを書いたので、今日は Non-Blocking I/O の話を。 Non-Blocking I/O という言葉からブロックしない I/O をイメージするのはたやすい。でもこれを実現しようとなるといろいろとまあ面倒くさいんだよね。 それを解決する常套手段で言うとファイルディスクリプタ(ネットワークならソケットだね)を開いてそれをselectシステムコールの監視対象に加えておき、selectを呼び出すことで監視するっていう方法がある。こうすると何が嬉しいのかファイルディスクリプタが2つある場合で考えてみよう。 まずAとBというファイルディスクリプタを監視対象とする。 selectシステムコールを呼び出し、そのどちらかが読み出し準備完了となっていないかを確認する。 もしどっちも準備できていなかったらプロセ
Introduction to EventMachine's Lightweight Concurrency Concurrent programming in Ruby gains newfound agility with EventMachine (EM), which introduces two concurrency paradigms: spawned processes and deferrables. Understanding deferrables is key to leveraging this model, as outlined in this guide and in-depth within the LIGHTWEIGHT_CONCURRENCY documentation. Understanding Deferrables What are Defer
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く