LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-27-2004, 03:21 PM   #1
erdemilhan
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Rep: Reputation: 0
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
 
Old 11-27-2004, 04:06 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Isn't the talk command suiting your needs ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how a father process know which child process send the signal SIGCHLD icoming Programming 10 07-20-2010 07:26 AM
SSL communication establishment process mrpc_cambodia Linux - Security 0 01-02-2005 07:19 PM
Bash Scripting - child process affecting parent process mthaddon Linux - General 1 05-02-2004 01:19 PM
process communication between linux and xp naanu Linux - Networking 2 03-10-2004 12:54 PM
problem with binding process and than execute another process chapa Programming 0 08-27-2003 03:47 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration