03-18-2010 05:48 AM
Hi Mary,
Okay, so the bottom line is: if you exceed the number of threads that the LabVIEW execution system uses, then you should check if performance increases or not.
I am working on setting that up right now, so I will see what happens and post the results here.
Could you sketch a typical situation for which more threads isn't better and one for which more threads do help?
Regards,
Frans
03-18-2010 10:43 AM
Frans Wijnen wrote:Hi Mary,
Okay, so the bottom line is: if you exceed the number of threads that the LabVIEW execution system uses, then you should check if performance increases or not.
I am working on setting that up right now, so I will see what happens and post the results here.
Could you sketch a typical situation for which more threads isn't better and one for which more threads do help?
Regards,
Frans
Having more threads than cores will typically not improve performance for computationally-intense applications. For those applications, context switching just creates overhead, since there will be no benefit from replacing a thread that is busy computing with another thread. However, having more threads than cores can improve performance for IO-bound applications where the threads spend part of their time sitting idle. When one thread is idle, it can be swapped out for another thread that can get additional work done.