LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Process Communication (https://www.linuxquestions.org/questions/programming-9/process-communication-259927/)

erdemilhan 11-27-2004 03:21 PM

Process Communication
 
Hi all,

I have been trying to write a program which will execute in two different terminals. Whichever process gets an input from the console will send it to the other process for displaying it on the terminal. Each process will have only one thread.

So the tricky part is to both listen the input from the keyboard and the input from the process with only using a single thread.

I thought making use of shared memory for processes to communicate. But i am not sure.

This program should also avoid busy waiting.

Any idea will be appreciated.

Thanks

jlliagre 11-27-2004 04:06 PM

Isn't the talk command suiting your needs ?


All times are GMT -5. The time now is 09:59 AM.