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
(2,773 Views)

NO reply !!!!

0 Kudos
Message 2 of 3
(2,743 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. 

http://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.

http://www.ni.com/white-paper/3663/en/#toc3

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