• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multithreaded Programs in JavaScript

 
pawan chopra
Ranch Hand
Posts: 417
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ido Green
author
Greenhorn
Posts: 25
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 417
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ido. Looks like I am gonna have fun with it!
 
Ido Green
author
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope so... :)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic