IPC on linux and C? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

IPC on linux and C?

tijoentijoen Posts: 141Member
Do anyone know how to exchange data between two process in linux using c?

Please
Thank you!
Jonathan

Comments

  • stoberstober Posts: 9,765Member ✭✭✭
    : 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

  • nugentnugent Posts: 87Member
    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



  • tijoentijoen Posts: 141Member
    : : 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
  • tijoentijoen Posts: 141Member
    : 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! =]
  • stoberstober Posts: 9,765Member ✭✭✭
    :
    : 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.
  • tijoentijoen Posts: 141Member
    : :
    : : 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
  • IDKIDK Posts: 1,784Member
    : : :
    : : : 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

  • tijoentijoen Posts: 141Member
    : : : :
    : : : : 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!

    =]
Sign In or Register to comment.