Avatar of fastnet5
fastnet5

asked on 

communication beteen two thread

Hi,
I have two thread .One name as ONLINE and other as OFFLINE thread.both the thread is in DLL that is getting loaded dynamically and after processing it has to unload.
requriment:
Online thread is for online processing and OFFLINE thread is for batch processing.suppose there is one event .whenever that even got fire online thread start executing.
Offline thread run on periodic basis. After every such period , it will check DLL.if it is loaded , then call the function and in that function, a offline thread get created and start executing.In between while executing the offline thread, online thread event got fired.Application has to suspend offline thread and start executing online thread .and once it is done, I have to resume offline thread.

So basically we need to do communication between OFFLINE and Online thread.can any one please help me .

Regards
C

Avatar of undefined
Last Comment
evilrix

8/22/2022 - Mon