5. I/O 完了ポート 5.1 概要 I/O 完了ポート (I/O Completion Port, IOCP) を使った非同期 I/O は、特に高性能なサーバー開発に欠かせない知識です。ワーカースレッドプールと I/O 処理がうまく協調して動く、大変優れた方法です。 IOCP を使う典型的なコードは次 のような流れになります。 IOCP を作成 ・ 同時実行数 M 個を指定 ・ CreateIoCompletionPort API で作成 ワーカースレッドプールを作成 ・ ワーカースレッドは GetQueuedCompletionStatus API の呼び出しでブロックする ・ スレッド数は 同時実行数 M 個+N 個 =M + N 個 (後述) ・ スレッドは普通に _beginthreadex や CreateThread で作成。 ファイルを開く ・ CreateFile など
c-ares については過去の記事で少し触れた。c-ares は以下に詳細な API リファレンスが存在するが、Web サイトトップより詳しく、API リファレンスよりも大雑把な機能紹介がないのがもったいない。 というわけで、c-ares を簡単に紹介しておく。まずは Web サイトトップに書いてあること。 非同期名前解決ができる 大抵のプラットフォームで呼び出すことができる gethostbyname、getaddrinfo は同期呼び出しのみ C ライブラリとして提供される IPv6 に対応している 様々なプラットフォームに対応していて移植性に優れている Windows Mac OS X Linux Android etc.. 今も活発に開発が行われている メーリングリストが活発 メインメンテナの Daniel Stenberg 氏が活発 ソースコードを見たり実際にコードを書いたり実行
CoffeeScript JavaScript require.js nikki Tweet JS の読込み順を征する者は なんか色々征する! with CoffeeScript ガツガツした JavaScript 案件をこなしていると、必ず直面するのが JavaSscript の読み込み順問題。 再利用性への考慮だったり、不必要なコードを読まないようにとモジュールを細分化した場合、 どうしてもその分 HTTP リクエストの回数が増えてしまいます。 ブラウザは読める物から読んでいくので、jQuery に依存しているのに先に読まれて jQuery がないと怒られるだとか、そういった経験は皆さんも一度はあるのではないでしょうか。 特に IE6 や IE7 などで、しょっちゅうそういった自体に遭遇するかと。 そのあたりをいい感じに解決するのが今回紹介する require.js です。
This browser is no longer supported. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. October 2011 Volume 26 Number 10 Asynchronous Programming - Async Performance: Understanding the Costs of Async and Await By Stephen Toub | October 2011 Asynchronous programming has long been the realm of only the most skilled and masochistic of develope
ikeike @ikeike443 Grizzlyの概要 : C10K問題に対応するGlassFish(Grizzly) « 寺田 佳央 – Yoshio Terada http://htn.to/mmWuHS 2011-05-23 01:47:39
A few weeks ago, I had the chance to evaluate the Play framework, a high-productivity Java web framework. At LinkedIn, we already use Grails and JRuby/Sinatra, so I was curious how Play would compare. The thing that really caught my eye was Play's support for asynchronous programming, which would be immensely useful for fetching data from our many backend services in parallel and supporting comet-
Asynchronous I/O in Windows for Unix Programmers Ryan Dahl 2011-04-26 This document was an attempt at understanding how best to port Node.js to Windows. The result of the port was the library libuv, which (among other things) provides a unified interface for asynchronous networking on the three big operating systems: Linux, OSX, and Windows. This document assumes you are familiar with how non-bloc
Table of ContentsPrefaceIntroductionSolving Integration Problems using PatternsIntegration StylesFile TransferShared DatabaseRemote Procedure InvocationMessagingMessaging SystemsMessage ChannelMessagePipes and FiltersMessage RouterMessage TranslatorMessage EndpointMessaging ChannelsPoint-to-Point ChannelPublish-Subscribe ChannelDatatype ChannelInvalid Message ChannelDead Letter ChannelGuaranteed D
It looks like nothing was found at this location. Maybe try one of the links below or a search? Search for:
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く