From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

What are steps executing of cmt function?

Hello!  does the worker thread  finished when execute at "return"of it?

thanks!

0 Kudos
Message 1 of 3
(2,618 Views)

After the scheduled thread function returns, the thread in which it ran goes into an idle state and waits for more work to be scheduled on the thread pool. You may want to look at the help topic "Using a Thread Pool to Run Code in Secondary Threads" for a general description of how thread pool thread scheduling works.

 

Mert A.

National Instruments

0 Kudos
Message 2 of 3
(2,588 Views)

thanks for your suggestion!

0 Kudos
Message 3 of 3
(2,580 Views)