Main steps
To check load on processor, run top command or System monitor.
Additionally you can add CPU monitor:
You can also install gnome-system-monitor:
Then run Start menu — System — System monitor.
To kill non-responding threads together with Eclipse, enter command:
You implement latency with Thread.sleep(latency); method