aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Multithreaded Programs in JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Multithreaded Programs in JavaScript " Watch "Multithreaded Programs in JavaScript " New topic
Author

Multithreaded Programs in JavaScript

pawan chopra
Ranch Hand

Joined: Jan 23, 2008
Posts: 411

Welcome Ido Green,

I have query about usage. Very few books explain where and when you should use MultiThreaded programs. Can you let us know if your book explains the scenarios where MultiThreaded Javascript will be good to use and will not have performance impact.


Pawan Chopra
SCJP - DuMmIeS mInD
Ido Green
author
Greenhorn

Joined: Jul 27, 2010
Posts: 25
This is a great question Pawan.
In the book you will find ideas and tips on when to use web workers in your sites/web apps.

There are many cases where it will be smart to off the 'load' some our main thread. Few examples:
* Complex mathematical calculations for security, webGL etc'.
* Make network requests - Ajax is good but think on cases where you want one point of 'sync' for your web apps.
* Access local storage - local storage is not async action! so the usage of web workers here make a lot of sense.
pawan chopra
Ranch Hand

Joined: Jan 23, 2008
Posts: 411

Thanks Ido. Looks like I am gonna have fun with it!
Ido Green
author
Greenhorn

Joined: Jul 27, 2010
Posts: 25
I hope so... :)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Multithreaded Programs in JavaScript