Hi @Jasmeher_Kathuria, Thanks for reaching out to us.
We really appreciate that you have shared your thoughts with us and explained them very well. It is great seeing that you guys are always coming up with betterments. We’ll look into it, Yes it is possible to terminate the process after running the 4 CPU command.
Please follow the steps below:
- Open a new terminal on the SPA widget.
-
Find the Process IDs (PIDs): Use the
ps
command to find the PIDs of the running processes. Open a new terminal window and type:
ps aux | grep cpu
- You will see the PS ID in the second column as show in the screenshot (126,127,128…).
-
Terminate Processes with
kill
: Use the kill
command to terminate each process. Replace <PID>
with the actual process ID.
kill 126
kill 127
kill 128
kill 129
- Go to the previous terminal. You will see the new iteration has stopped. Now press
ctrl+c
the process will terminate.
Please feel free to reply here if there is still some confusion.
Hope you have an amazing learning experience on Educative!