LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can you do multithreading on multicores in LabWindowsCVI?

Can you do multithreading running on multicores in LabWindowsCVI?

 

Case: I have 5 threads: thread1, thread2, thread3, thread4, thread5. Each thread is running complicated analysis function for LTE. I would like thread1 to run on CPU1, thread2 on CPU2, thread3 on CPU3, thread4 on CPU4, thread5 on CPU5.

 

My environment is: WindowsXP Professional 32-bit. I have 8 core Xeon, with virtual core it becomes 16.

LabWindowsCVI2010.

 

Thanks.

 

Juswanto

0 Kudos
Message 1 of 2
(2,602 Views)

Probably you have to use the WinAPI function SetThreadAffinityMask().  For documentation you may start at http://msdn.microsoft.com/en-us/library/windows/desktop/ms684251(v=vs.85).aspx 

Message 2 of 2
(2,589 Views)