Thread: Program using Fork and Pipe

  1. #1
    Registered User
    Join Date
    Oct 2010

    Post Program using Fork and Pipe


    Can anyone help me with my assignment?

    "Write a program in C which creates a child (with the use of fork) and between the child and the parent there is bidirectional communication through the use of pipes.

    The child process will read letters from the user (keyboard) and it will send them to the father.

    If the father process finds a capital letter - it will turn it to non-capital letter and if it finds a non-capital letter it will turn it to capital. After this "conversion" is done - the father will send the letters back to the child which will print the message on the screen.

    Both processes terminate on key "Q" or "q" pressed."


  2. #2
    Registered User
    Join Date
    Dec 2006
    No. Write it yourself.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    C Board - Announcements in Forum : C Programming

    > Can anyone help me with my assignment?
    How To Ask Questions The Smart Way

    We can help if you make an effort, but we're not a homework on demand service.
    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.

  4. #4
    Registered User
    Join Date
    Jan 2008
    Give it a try on your own first before asking for help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fork + pipe + dup2
    By caio1985 in forum C Programming
    Replies: 6
    Last Post: 09-07-2010, 02:18 PM
  2. Replies: 4
    Last Post: 10-14-2009, 04:44 PM
  3. fork and pipe
    By tbarsness in forum C Programming
    Replies: 3
    Last Post: 10-22-2007, 12:40 PM
  4. redirection program help needed??
    By Unregistered in forum Linux Programming
    Replies: 0
    Last Post: 04-17-2002, 05:50 AM

Tags for this Thread