Question: Can you help me with this project? Use JAVA. Please send me original code not from somewhere else or AI Your code should be in

Can you help me with this project? Use JAVA. Please send me original code not from somewhere else or AI
Your code should be in C, C++ or Java. In this project, you will use ordinary pipes to implement an inter-process communication scheme for message passing between processes. Assume there are three directories, d0, d1 and d2 inside your home directory. Initially, directory d0 has four short text files, named f1, f2, f3, and f4. Directories d1 and d2 are initially empty. You have to use a parent process that forks two children processes.
The parent sends a message using one pipe to the first child. In that message, the parent sends the names of the first two files, namely f1 and f2. Similarly, the parent sends a message to the second child, using the another pipe, containing the names of the other two files, namely f3 and f4.
On receiving the message from the parent, the first child creates empty files with the names contained in the message, i.e., f1 and f2 in directory d1.
Similarly, on receiving the message from the parent, the second child creates empty files with the names contained in the message, i.e., f3 and f4 in directory d2.
The parent process will send to the first child process the contents of files f1 and f2. The first child process should store in its copies of f1 and f2(in directory d1) the corresponding contents of the files.
Similarly, the parent process will send to the second child process the contents of files f3 and f4. The second child process should store in its copies of f3 and f4(in directory d2) the corresponding contents of the files. After these steps, the directories d1 and d2 together should have copies of the four files in directory d0. In your code you should not make any assumption about the size of files.
Submission Information
The submission should be through eLearning in the form of an archive consisting of:
1. File(s) containing the source code.
2. The makefile or any other script/instructions to compile the files and produce the execuable code.
3. The directories and files you used to test the execution of your code.
Your source code must have the following, otherwise, you will lose points:
1. Proper comments indicating what is being done
2. Error checking for all function and system calls

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!