Click here to Skip to main content
15,884,628 members
Please Sign up or sign in to vote.
1.27/5 (5 votes)
See more:
i need to make a system that consists of 2 process parent and child communicates through ordinary pipe the parent should assign the id and the child should read it and print it on screen
The output should be like this:
I am parent process my ID is #### i wrote your info into a pipe
I am child process my ID is #### you are "AHMAD-7777"(not nescaccery Ahmad-7777 it could be anything else)

What I have tried:

i tried nothing i donnot know C am still learning
Updated 5-May-21 8:09am
Rick York 5-May-21 11:51am    
Time's up.
KarstenK 5-May-21 13:40pm    
isnt too hard, when you have learned the basics and that piping stuff. Google for some tutorials and move on.

Quote:i tried nothing i donnot know C am still learning

This should come as no surprise to you but the purpose of having assignments is so you can learn C

We are here to help you do your work not do it for you and help means you've given it a good try (and show us what you've done!).

Time for you to start your homework
Share this answer
Ali Zbeeb 5-May-21 10:05am    
bro come on i have only 30 mins to submit and i started learning C yesterday it is impssible for me to do anything
W Balboos, GHB 5-May-21 10:12am    
What are you doing in that class? If it's not a beginners class then you don't belong there. If you don't learn to do your own work and learn how to learn you are starting your career as a failure.
Ali Zbeeb 5-May-21 10:16am    
it is the first year in university and i donnot know how to do pipes and blah blah till now so can u please help me and stop mocking me
W Balboos, GHB 5-May-21 10:23am    
I will say it again: what is the level of the class you entered since you should be in a beginners class. And also, when did classes start? I don't know where you are located but in most of the world the university year starts in September.

No one here will do your work for you so figure out something else. Or maybe study subjects for things you like to do.
We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

And that assignment is not a "beginner task" for someone who "donnot know C" ...

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]
Share this answer
Ali Zbeeb 5-May-21 10:05am    
bro come on i have only 30 mins to submit and i started learning C yesterday it is impssible for me to do anything
Dave Kreskowiak 5-May-21 10:20am    
That's not going to happen. We're not here to write your code for you.

Also, what you are saying is bullshit. NOBODY teaches you to use multiple processes and pipes to communicate between them on day 2 in any C class.

So if you just started learning C yesterday, you're either in a crappy class or you've mismanaged your time so badly, or never paid attention in class at all to this point.

There is nothing you can do to get out of the problem you've created for yourself.
SeanChupas 5-May-21 14:24pm    
30 minutes? ROFL.
OriginalGriff 5-May-21 14:33pm    
I'm guessing it's his final exam, and he literally did start learning yesterday.
The course he's been on has been going for a year, but yesterday was when he realized he couldn't find the hole in a doughnut, much less code "hello world" on his own ... and started reading. :laugh:
OriginalGriff 5-May-21 10:26am    
"it is impssible for me to do anything"
Yes, it absolutely is: as I said 'that assignment is not a "beginner task"' and I wouldn't expect it to be given to a complete beginner.
So either there is something wrong with your course, or ... you have left it too late to do your homework and want someone to get you out of a self-dug hole.
Using threads, pipes, processes etc. are more advanced subjects, and require a good knowledge of C and a very good knowledge of the operating system that you are running under.

If you really cannot complete the assignment then you should discuss with your teacher. Getting someone else to do your work will not help you learn.
Share this answer
i tried nothing i donnot know C am still learning

Seriously ?
As playing with processes communication is a rather advanced topic, you are claiming to have skipped 6+ months of courses and ask us do your assignment for this reason.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900