subject
Computers and Technology, 17.06.2021 20:10 yhhh

Using the language C, you will use ordinary pipes to implement an inter-process communication scheme for message passing between processes. Assume that there are two directories, d1 and d2, and there are different files in each one of them. Also, each file contains a short-length string of characters. You have to use a parent process that forks two children processes, and have each child process check one of the directories. Assume that child 1 (child 2) is responsible to check the directory d1 (directory d2, respectively). This child process has to create a list of names of the files in the directory and their contents.
After creating the list, each child process will send its list to the other child process using a pipe.
Upon receiving the list, child 2 (child 1) will create the files listed by child 1 (child 2) in directory d2 (directory d1, respectively) and fill the files with their initial contents.

After these steps, the directories d1 and d2 should be identical.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:00
How can data be added to a new table in data base
Answers: 1
question
Computers and Technology, 22.06.2019 03:00
How can i clip a picture to a question on the computer?
Answers: 1
question
Computers and Technology, 22.06.2019 11:30
One subtask in the game is to roll the dice. explain why is roll the dice an abstraction.
Answers: 3
question
Computers and Technology, 22.06.2019 16:30
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 2
You know the right answer?
Using the language C, you will use ordinary pipes to implement an inter-process communication scheme...
Questions
question
Mathematics, 07.12.2020 03:10
question
Mathematics, 07.12.2020 03:10
question
Mathematics, 07.12.2020 03:10
question
Mathematics, 07.12.2020 03:10
question
History, 07.12.2020 03:10
Questions on the website: 13722363