Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7789249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:14:27+00:00 2026-06-01T21:14:27+00:00

Almost all the pipe examples I’ve seen advice closing the unused write/read ends. Also

  • 0

Almost all the pipe examples I’ve seen advice closing the unused write/read ends. Also man clearly states that pipe() creates a pipe, a unidirectional data channel But I’ve tried reading and writing to both ends of the pipe in both the parent and the child and everything seems to be OK.

So my doubt is why do we need 2 pipes if two processes have to both read and write to each other and why not do it using a single pipe?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T21:14:28+00:00Added an answer on June 1, 2026 at 9:14 pm

    If you use the same pipe how does the child separate its messages from the parents messages and vice versa?

    For example:

    Parent writes to pipe
    Parent reads from pipe hoping to get message from child but gets its own message :(
    

    It is much easier to use one pipe for child->parent and another pipe for parent->child.

    Even if you have some protocol for reading/writing it is quite easy to deadlock the parent and child process.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Almost all of the examples in the jQuery tutorials that I've read, usually use
In almost all of the books I read and examples I go through I
Almost all of the applications I write at work get their data from a
Almost all examples of how to use display images from the image gallery are
Almost all of the Delphi code I have read has all the class type
I read (almost) all the answers on verifying in-app purchase, and actually I already
Almost all the examples I see are done with IB but I don't want
I've read almost all the other questions about the topic, but my code still
i have seen almost all relevant threads on almost whole internet. and i m
Why in almost all the tutorials or examples people do that: @Override public void

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.