Hello Yogesh,
You
can not share the threads in your example since when you start another instance of the EXE, you create a different process for it to run in.
Each process uses it's own memory "space".
You may re-think creating a second process OR you can one of the various methods for
Inter-Process Communication (
IPC), for example:
- Named Pipes
- Shared Mem
-
MSMQ
- Sockets
Cheers,
Edo