Pipes/Forks

This is a discussion on Pipes/Forks within the C Programming forums, part of the General Programming Boards category; Does anyone know any good webpages or information that can help me learn pipes and forks? I've tried searching google ...

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    15

    Pipes/Forks

    Does anyone know any good webpages or information that can help me learn pipes and forks? I've tried searching google and everything I read... I must admit has made me utterly confused.

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    15
    Thanks, that was a good start ^^

    You wouldn't happen to know anymore though? *blush*

    Especially related to Pipes

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Do you want to know the principles or how to use them in your programs? For the latter I would suggest getting a book to help you. The applications are many when it comes to pipes and process forking.
    My best code is written with the delete key.

  5. #5
    Registered User
    Join Date
    Jul 2003
    Posts
    15
    I need to write a program, that begins with one process and forks to two (I understand how this works now), but I am still really confused with how you would implement a pipe to transfer messages between the two processes, mainly as I still have not figured out how a pipe works.

    In specific: What is a File Descriptor? That's the main part of pipes I do not understand.

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,497
    Mmm, recent posts by Schwarzhelm touched on this subject
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  7. #7
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Some more available here
    http://www.cs.cf.ac.uk/Dave/C/CE.html
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21