Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • 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
Sheriff
Posts: 22542
109
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
Sheriff
Posts: 22542
109
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
 
Destiny's powerful hand has made the bed of my future. And this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!