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

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.