Thread: Pipes/Forks

  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,897
    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,897
    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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    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.

  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