This Problem is taken From the 10th edition Book of "Operating System Concepts" by Avi Silberschatz ,Peter Baer Galvin and Greg Gagne . Project 1 of Chapter no. 4 ...