10-10-2011 06:31 AM
Hi
I'm trying to build a customize operator interface in c#
Is there away to get the threads number in a sequence dynamically(during runstate) via API
and if so how?
Thanks
Assi
10-10-2011 06:40 AM
Hi,
You can try Execution.NumThreads
Execution.NumThreads
Returns the current number of threads in the execution.
Do not access this property when handling a UIMsg_Trace message. TestStand allows non-foreground threads to run and complete while TestStand handles trace events. As a result, getting the number of threads is unreliable during trace event handling.
12-13-2011 07:02 AM
Is there a limitation in the number of threads that can be generated by teststand?
br
12-13-2011 04:16 PM
There is no hardcoded limit, but the OS and available resources likley have a practical limit.
-Doug
12-14-2011 01:53 AM
Thanks for the fast reply.
We are trying to runn more than 100 Threads in parallel and run in trouble with that. But we are not shure if it is thread related.
What are your expirences with the practical max numbers of threads?
12-14-2011 06:20 AM
What sort of problems are you have, can you give examples?
12-14-2011 10:22 AM
If you have 100 threads, but 90 of them are generally suspended at any given time then it's ok, but if you are really trying to do 100 things in parallel it's very likely you will run into performance problems. The short answer is, it depends on what those threads are doing.
Hope this helps,
-Doug
12-14-2011 10:42 AM
Thanks, this information helps.