开发者

What client-side web languages can support multiple threads?

I am trying to write an application that is web-based and I was originally using javascript. However I need to be able to use multiple thr开发者_高级运维eads. What other web languages support multiple threads?

Edit: I am looking for client-side.


If you need concurrency in client-side JavaScript have a look at WebWorkers:

  • https://developer.mozilla.org/En/Using_web_workers
  • http://en.wikipedia.org/wiki/Web_Workers

To find out which version of browser support Webworkers, see this table.


Multi-threaded Javascript is something that has been proposed but is not currently possible (apart from web workers, which is another story). Javascript is an asynchronous language anyway, which is why threading was not originally part of Javascript. No other client-side language support multi-threaded operations.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜