Question: PLEASE TYPE IT IN JAVA FOR BOTH 4 AND 5 IF POSSIBLE, THANK YOU. 4. Create a class to represent a Process Control Block. For

PLEASE TYPE IT IN JAVA FOR BOTH 4 AND 5 IF POSSIBLE, THANK YOU.

PLEASE TYPE IT IN JAVA FOR BOTH 4 AND 5 IF POSSIBLE,

4. Create a class to represent a Process Control Block. For now, the control block should only contain the PID and the process status. 5. Create a JAVA interface to allow operations on processes. (Right click, new Java Class and then select interface in IntelliJ) The interface should declare the following methods of the API: int createProcess ( ) throws Exception Creates a process (by creating its process control block) and adds it to the ready queue. Returns the PID of the process created. Throws exception if unable to create the process (for example if no PID are available) void terminateProcess (int pid) throws Exception Terminates the process with the specified pid. Throws exception if the process doesn't exist

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!