If it is not explicitly told in following recipe, setting up services are described for Ubuntu 20.04 server, but applications are described for Xubuntu 20.04 workstation. If you use different Ubuntu version or Linux distribution, settings as well as content, names and places of configuration files may be different!
Got it.

11. Threads

Review the presentation Threads

Tasks

  1. Explore the jtm.activity11 package
  2. View Activity11.png to understand the design and three different approaches to filling arrays.
  3. Implement the ArrayFiller and ArrayFillerManager classes to pass unit tests.

lightbulb To check the processor load, run the command top or System monitor.

You can also add a CPU monitor:

  1. Right-click on an empty space on the panel, select Panel — Add new Items..
  2. Select CPU Graph and press Add.
  3. Then left-click on CPU graph to open the task manager.
  4. You can also install gnome-system-monitor):

    sudo apt install gnome-system-monitor

    Then run Start menu — System — System monitor.

lightbulb To kill unresponsive threads (with Eclipse):

killall -9 java

lightbulb You can implement latency with the Thread.sleep(latency); method.

Alternative


  

Created by Valdis Vītoliņš on 2025-01-28 17:39
Last modified by Valdis Vītoliņš on 2025-01-28 17:39
 
Xwiki Powered
Creative Commons Attribution 3.0 Unported License