LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

InetTelnetOpen Multi

Hello,

I use InetTelnetOpen in 4 thread each one have it's handle, I noticed that the time elapsed during a single thread in telnet is 2 sec but with 4 threads 9 sec.

Is there any solution to this problem?

 

Thanks a lot!

0 Kudos
Message 1 of 3
(3,247 Views)

NO reply !!!!

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

There is another forum post that explains what may be happening here, linked below. Essentially, only one thread can execute a function in a library at one time, which is why 4 threads is taking longer. 

https://forums.ni.com/t5/forums/v3_1/forumtopicpage/board-id/180/thread-id/16687/page/1

 

In addition, I would recommend reading through the following white paper on multithreading in CVI.

https://www.ni.com/en/support/documentation/supplemental/06/multithreading-in-labwindows--cvi.html#s...

Maggie M.
Application Engineer
National Instruments.
http://www.ni.com/support
0 Kudos
Message 3 of 3
(3,200 Views)