Question: B) Write client/server programs in Unix that do the following: The server process creates a shared memory area by using System Vs shared memory segment.
B) Write client/server programs in Unix that do the following:
The server process creates a shared memory area by using System Vs shared memory segment.
The client(s) (there can be more than one client processes running), started separately on the same machine, can write some text to the shared buffer.
The text will be less than 1000 bytes. You can input the text from keyboard, or you can ask the client to read the first 1000 bytes of a text file (redirect from stdin is the easiest solution). When the server receives a new text from a client, it appends the text to a file. The server stops when it sees a STOP!!! string in the shared buffer. You need to figure out a way for the client to notify the server that a new text is ready. Remember that the client(s) can write the same text twice. Your test cases should test this condition.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
