I am using ubuntu 20.04 VM for a course. For an assignment, I need to run a command that creates some thread and two processes happen simultaneously. However as soon I run the command ubuntu slows down and the CPU utilization goes to 200% for that process. I allotted 8GB/16GB RAM to oracle VM and 6/12 CPUs (Oracle forbids to allocate beyond 6 CPUs).
A screenshot of situation is attached:
Is there some way to prevent this to happening?? Maybe some alternative that takes less CPU but more time? Also will this issue occur in WSL2??
PS: I am new to ubuntu and don't know the inner working at all. My friends and the Teaching assistants are not familiar with VM. I cannot dual boot ubuntu, last time it gave serious issues.