subject

IN C LANGUAGE (Please add comments and in Linux environment): In this project, 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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 14:30, binodkharal2048
Hi plz 11 ! when planning a table, what step comes first: "define the column headers" or "calculate the number of columns/rows"? a. calculate the number of columns/rows b. define the column headers
Answers: 1
image
Computers and Technology, 22.06.2019 20:30, fickllyd000
In this lab, you complete a prewritten c program that calculates an employee’s productivity bonus and prints the employee’s name and bonus. bonuses are calculated based on an employee’s productivity score as shown below. a productivity score is calculated by first dividing an employee’s transactions dollar value by the number of transactions and then dividing the result by the number of shifts worked.
Answers: 3
image
Computers and Technology, 23.06.2019 04:31, manlyman31
Selling a product through an electronic medium is
Answers: 1
image
Computers and Technology, 23.06.2019 15:00, Siris420
Plz ( which is an example of a good url?
Answers: 1
You know the right answer?
IN C LANGUAGE (Please add comments and in Linux environment): In this project, you will use ordinar...

Questions in other subjects:

Konu
History, 14.12.2020 14:00
Konu
Mathematics, 14.12.2020 14:00
Konu
Mathematics, 14.12.2020 14:00
Konu
Mathematics, 14.12.2020 14:00