I have to write a c code which will contain two processes. And its executable will be launched twice on two different terminals. Both processes will know whats their role. One terminal will show result of one process and second terminal will show result of second process.If i make two threads to create these two process can some one help me out that how both processes will recognize their role when launched on terminals?
An executable has two processes and is launched twice on two different terminals How to make the processes identify their roles
programming