其它框架

关注公众号 jb51net

关闭
js多线程库Concurrent.Thread-full-20080319

js多线程库Concurrent.Thread-full-20080319

您还可以选择:迅雷高速下载1

热门排行

简介

//jsthread.sourceforge.net/cgi-bin/wiki/wiki.cgi
Concurrent.Thread
Concurrent.Thread is a JavaScript library providing user-level (virtual) thread. It does not modify any Web browsers and consists of 100% pure JavaScript.
Getting Information
We have two mailing lists for Concurrent.Thread:
Jsthread-announce
This list is mainly for official announcement about Concurrent.Thread.For example, repository commit message, new version release, documentation update, ...etc.Also, feel free to announce your product using Concurrent.Thread in this list.
You can subscribe here.
Jsthread-users
The mailing list for Concurrent.Thread users.You can post any message about Concurrent.Thread, such as questions, proposals, discussion, ...etc. Any comment will be welcome!
You can subscribe here.
这两天一直在弄ajax,用多了才发现了ajax 的cache问题,请求了好多次,得到了确是相同的结果,经常我想在请求的同时去做一些其它的事情,我在想javascript里有没有办法用多线程,经过在网上查找找到了结果。
法宝就是Concurrent.Thread这个家伙,其实是一个js库,你可以从网站下载源代码.如何使用呢?
很简单

Concurrent.Thread.create(f, a1, a2, ...) f为你要调用的函数,a1,a2为该函数的参数,这样创建了一个线程,你可以同时创建多个,他们会同时去执行,这个库同时提供 了很多的方法,类似其它语言里的Thread使用方法,如Concurrent.Thread.stop();等。具体去网站去了解。

大家还下载了