LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Threads Concepts help

HI,
 
As I created 2 threads which are running in parallel one therad calls the function thread1_func and another thread calls the function thread2_func.
 
Both the threads calls for 3 times.
 
int CVICALLBACK thread1_func(void * data)
{
 
 printf("Thread1 Executing\n");
 
}
 
int CVICALLBACK thread2_func(void * data)
{
 
 printf("Thread2 Executing\n");
 
}
 
Now my Output should be like below :-
 
Thread1 Executing
Thread2 Executing
Thread1 Executing
Thread2 Executing
Thread1 Executing
Thread2 Executing
 
When I run my program I am not getting the above output it will flow randomly...Please help me in this issue....send me a sample program if possible
 
Regards
krishna
 
0 Kudos
Message 1 of 1
(2,853 Views)