How can I make one process handle the queue operations and other one execute the query’s in the queue
In this code below (server), I need to be able to receive the client’s query’s, insert them in the FCFS queue and, at the same time, I need those query’s to be executed by the server.
I know the code below doesn’t do what I need, and I’m out of the ideas how to do so. I can’t use semaphores, multi-threading etc.. I’m only allowed to use fork’s and pipe’s, if necessary.