It should be executing the above processes by appropriately interleaving the CPU among them, until all the processes are finished. Any status change, mode switching, or context switching is required to be printed on the screen.
Hey
A Java expert developer is here
I have good advanced expertise in Java and Data Structures
I can update and fix the Java code for you
Feel Free to message me
We can discuss about the details in chat
Regards