Question: how to solve fcfs problem in os?
Answer: Step 0) The process begins with P4 which has arrival time 0.
Step 1) At time=1, P3 arrives. ... 
Step 2) At time= 2, P1 arrives which is kept in the queue.
Step 3) At time=3, P4 process completes its execution.