• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to identify the maximum number of threads without degrading my systems performance ?

 
adil qureshi
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to know is there any way ,any formula by which i can calculate the maximum number threads i can create without affecting performance.Considering all are doing similar work .
 
Henry Wong
author
Marshal
Pie
Posts: 21489
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too many variables in play here... it depends on the hardware, the OS, the JVM, and what the threads are doing.

It probably best to just run trials to figure out the optimal number of threads for any given setup.

Henry
 
adil qureshi
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey i have come to know that amdahls law can help us here , do you have any suggestion ?
 
Henry Wong
author
Marshal
Pie
Posts: 21489
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
adil qureshi wrote:hey i have come to know that amdahls law can help us here , do you have any suggestion ?


Well, I guess you can take a single aspect or even a few aspects, and calculate the theoretical scaling. But in general, there are too many factors to do a accurate prediction, especially if you want to scale the application to hundreds of processors.

Henry
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic