Ask your own question, for FREE!
Computer Science 22 Online
OpenStudy (anonymous):

there's a transfer mechanism using pipe b/n a parent and a child what if read end of pipe is closed and write end is not closed? what happens in this case?

OpenStudy (anonymous):

@nick67

OpenStudy (anonymous):

@ktobah @infinity_

OpenStudy (nick67):

@A.Avinash_Goutham try this, may be it could be useful http://users.encs.concordia.ca/~mia/tutorials/coen346/IPC_threads/ch01s05.html

OpenStudy (anonymous):

I remember we did a program with C about that, as I remember it's something about Mutual Exclusion, means this pipe (where the parent and the child put or get messages) is a critical resource, that means only one can access it at a time for writing (for reading it's ok they can access it simultaneously no problem). So you can apply a semaphore or something like that to guarantee this ME.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!