02-15-2008 02:14 PM
02-27-2008 07:15 AM
Hi Glenn
I have been looking into the CVI functions for multithreading and I don't think you can find the thread ID of any threads other than the current thread or the main thread. There is a CVI function that finds the ID of the main thread, this is the CmtGetMainThreadID function. You may be able to use C commands to do this, however there is no specific CVI function that can do this.
Also, having looked at the functions, it seems that you can create a thread pool which contains threads, but I don't think you can create an individual thread. You can us the CmtScheduleThreadPoolFunction to assign tasks. The function will automatically choose which task is assigned to which thread. Another function you can look at is the CmtScheduleThreadPoolFunctionAdv, this allows you assign priorities to functions.
I hope this helps
Regards
02-28-2008 08:33 AM