Bug 437152 – implement worker threadsを使ってみる。 var thread = navigator.newWorkerPool(); thread.createWorker(function(){ setTimeout( clearInterval, 1000, setInterval(postMessageToPool, 5, "thread1")); }.toSource() + "()"); thread.createWorker(function(){ setTimeout( clearInterval, 1000, setInterval(postMessageToPool, 5, "thread2")); }.toSource() + "()"); thread.messageListener = function(message){ console.log(message); }; thread1, thread2, thread2, thread2, t... 続きを読む
4 コメント   このエントリーを含むはてなブックマーク このエントリーのブックマーク数

コメント 評価したユーザ 関連ブログ

コメント

Profile_s written by terurou 107日前

こんなAPIがあったのか…。

Profile_s written by mgng 115日前

マルチスレッド

Profile_s written by koko1000ban 115日前

スレッド内でXHRやらない、データのやりとりはjson使ったりする

Profile_s written by brazil 115日前

スレッド、navigator.newWorkerPool

[PR]ブログのペットがお留守番