LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Worker thread In cvi

Can some one explain me about Thread pool pattern (Worker thread) in very simple way and where should i implemented this.?

if possible kindly share a example project with me it will be helpful .

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

In very simple words, when you have a group of functions that you want to be executed without disturbing and without being disturbed by other tasks in the PC, being the most notable of them serving the User Interface, you should think to a multithreaded paradigm. The thread pool is no more than a group of independent threads with some functionality added to improve internal thread handling and in general system efficiency.

You can find detailed informations on multithreading in the CVI help (see Creating Applications >> Creating Multithreaded Applications chapter that starts with Reasons for Multithreading topic).

 

CVI already comes with some examples of multithreading that you can list by using the Example Finder: execute Help >> Find Examples... menu function, the open the Search tab on the left and enter "Multithreading" in the search field, next double-click on the underlying results and you will be prompted with a list of examples in the middle of the window.

I suggest you to look at Simple and OnePanel examples first.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,344 Views)