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

 
Niranjan Prasad
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why JAva supports Threads Concept?
Is it for using idle time of CPU
 
Clifton Craig
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thread support is for multi-tasking programs. If you wanted to, for example, execute a long running expense report while viewing a sales analysis summary in a different window in the same app then you would use threads. Another example is if your app wanted to chew gum and walk at the same time.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!