Please help me. I need it in C!
Develop a program to do the follows.
a) Create a pipe.
b) Fork() a child process.
c) Let the parent process write 20 integers between [1, 50] to the pipe. Use random() function to generate the integers.
d) Let the child process read the 20 integers from the pipe and write them to a message queue.
Let the child process create the message queue, and then do the writing.
Assign type 1 to odd integer, and assign type 2 to even integer when writing them to the message queue.
Please help me. I need it in C! Develop a program to do the follows. a) Create a pipe. b) Fork() a child process
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am