If it is not explicitly told in following recipe, setting up services are described for Ubuntu 16.04 server, but applications are described for Ubuntu 16.04 and/or Lubuntu 16.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

  1. Review presentation Threads

      

  2. Investigate jtm.activity11 package
  3. Look at Activity11.png to understand design and 3 different approaches of array filling
  4. Implement classes ArrayFiller, and ArrayFillerManager to pass unit tests

lightbulb To check load on processor, run top command or System monitor.
Additionally you can install Multiload monitor with command:

sudo apt-get install indicator-multiload gnome-system-monitor

lightbulb To kill non-responding threads together with Eclipse, enter command:

killall -9 java

Hints:

You implement latency with Thread.sleep(latency); method

Optional task

  1. Try to analyse execution of fillParalelly() method step-by-step in Eclipse Debugger.
  2. Compare it with debugging experience by writing informative messages into standard output by System.out.println() and step-by-step analysis of produced output after execution of your program.

  
Tags:
Created by Valdis Vītoliņš on 2017-01-03 10:07
Last modified by Valdis Vītoliņš on 2020-05-26 18:53
 
Xwiki Powered
Creative Commons Attribution 3.0 Unported License