Write a program to copy a file to a destination file using message queues.?
Write a program to copy a file to a destination file using message queues.
The server (writer process) has to split the data in the file appropriately
and send it to the message queue. There should be one writer process which
writes into the message queue and four reader processes which read the
appropriate message from message queue and writes into the destination file.
Use semaphores to synchronize writing into the file by the reader process.
How to handle this problem?
If we use 4 reader process and write into one destination file.... with the same copy of source file?