Thnaks for your reply. When I am searching I have found this sample code.
Code:
void ThreadProc1(void *param);
void ThreadProc2(void *param);
int main()
{
int val = 0;
HANDLE handle;
val=1;
handle = (HANDLE) _beginthread( ThreadProc1,0,&val); // create thread
WaitForSingleObject(handle,INFINITE);
val=2;
handle = (HANDLE) _beginthread( ThreadProc1,0,&val); // create thread
WaitForSingleObject(handle,INFINITE);
return 0;
}
void ThreadProc1(void *param)
{
int h=*((int*)param);
functin1();
_endthread();
}
void ThreadProc2(void *param)
{
int h=*((int*)param);
functin2();
_endthread();
}
In here each thread start after finishing previous thread.
Can I know the way of insert my two functions to this to work in fully independent way of working my functions.?
Thebrighter