Hi ,
There are two questions to consult . For TCP/IP programming , using RegisterTCPServer() to register an program as a listener ,once there is a connecting request, the listener can create another thread
which also use RegisterTCPServer() to register itself as a new TCP server ,and at the same time ,add its thread ID into a list queue ,so there may be many threads performing different tasks . My questions are :
1.If one thread has finished its task ,how to notify the main thread so that stop the thread and free the resource ?
2.Do I need to use a thread lock with such an application ?
Thanks .
David Lee
liwcwx@public.xm.fj.cn