Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

threads  RSS feed

 
shaiksha vali
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On which scenario we go for threads
 
Vijitha Kumara
Bartender
Posts: 3992
27
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
shaiksha vali wrote: On which scenario we go for threads


When you have multiple tasks to be executed concurrently.
 
shaiksha vali
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May i know in your projects on which scenario you use the threads. Can you give the details
 
Vijitha Kumara
Bartender
Posts: 3992
27
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It can be any scenario which you have multiple jobs which can be run concurrently (and even to occupy the valuable resources like processor time when one task is waiting for some other input so you can run other tasks at that time). Here is a tutorial which explains the basics with some examples.
 
shaiksha vali
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanq for your replay
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!