Beginner C/C++

Moderators: None (Apply to moderate this forum)
Number of threads: 5428
Number of posts: 16943

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
IPC on linux and C? Posted by tijoen on 15 Dec 2006 at 1:43 PM
Do anyone know how to exchange data between two process in linux using c?

Please
Thank you!
Jonathan
Report
Re: IPC on linux and C? Posted by stober on 16 Dec 2006 at 4:04 AM
: Do anyone know how to exchange data between two process in linux using c?
:
: Please
: Thank you!
: Jonathan
:
here is a list of some options:

file system
pipes
sockets
shared memory

Report
Re: IPC on linux and C? Posted by tijoen on 16 Dec 2006 at 10:22 AM
: : Do anyone know how to exchange data between two process in linux using c?
: :
: : Please
: : Thank you!
: : Jonathan
: :
: here is a list of some options:
:
: file system
: pipes
: sockets
: shared memory
:
:
Thanks! =]
another question, which one is faster?
I mean, which one is good for better performance?

Thanks
Jonathan
Report
Re: IPC on linux and C? Posted by stober on 16 Dec 2006 at 4:28 PM
:
: Thanks! =]
: another question, which one is faster?
: I mean, which one is good for better performance?
:

depends -- are the two processes on the same computer? If yes then shared memory is probably fastest. If not, then sockets may be the only option.
Report
Re: IPC on linux and C? Posted by tijoen on 18 Dec 2006 at 3:21 AM
: :
: : Thanks! =]
: : another question, which one is faster?
: : I mean, which one is good for better performance?
: :
:
: depends -- are the two processes on the same computer? If yes then shared memory is probably fastest. If not, then sockets may be the only option.
:
yeah, they are in the same computer
where can I find more about shared memory between two process?

Thank you very much!
Jonathan
Report
Re: IPC on linux and C? Posted by IDK on 18 Dec 2006 at 8:18 AM
: : :
: : : Thanks! =]
: : : another question, which one is faster?
: : : I mean, which one is good for better performance?
: : :
: :
: : depends -- are the two processes on the same computer? If yes then shared memory is probably fastest. If not, then sockets may be the only option.
: :
: yeah, they are in the same computer
: where can I find more about shared memory between two process?
:
: Thank you very much!
: Jonathan
:

Google is always good:

http://www.google.com/search?hl=en&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=shared+memory&spell=1

Report
Re: IPC on linux and C? Posted by tijoen on 18 Dec 2006 at 8:37 AM
: : : :
: : : : Thanks! =]
: : : : another question, which one is faster?
: : : : I mean, which one is good for better performance?
: : : :
: : :
: : : depends -- are the two processes on the same computer? If yes then shared memory is probably fastest. If not, then sockets may be the only option.
: : :
: : yeah, they are in the same computer
: : where can I find more about shared memory between two process?
: :
: : Thank you very much!
: : Jonathan
: :
:
: Google is always good:
:
: http://www.google.com/search?hl=en&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=shared+memory&spell=1
:
:
yeah, google is always my master teacher
Thank you very much, sir!

=]
Report
Re: IPC on linux and C? Posted by nugent on 16 Dec 2006 at 8:33 AM
look at the GNU C manual and read the sections on pipes, fifos and sockets or search google's to do a linux specific search

GNU Libc manual: http://www.gnu.org/software/libc/manual/html_node/index.html

Google Linux:
http://www.google.com/linux



------
nugent



Report
Re: IPC on linux and C? Posted by tijoen on 16 Dec 2006 at 10:23 AM
: look at the GNU C manual and read the sections on pipes, fifos and sockets or search google's to do a linux specific search
:
: GNU Libc manual: http://www.gnu.org/software/libc/manual/html_node/index.html
:
: Google Linux:
: http://www.google.com/linux
:
:
:
: ------
: nugent
:
:
:
:
Thank you! =]



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.