Exercises 1
Create a console application and create and use two threads that are printing an increasing counter. Change the threads priorities and notice the effect on the counters. Use the Thread’s sleep method if you need to slow down the printing.
Create a simple animation on a Container which holds a Pause and a Play button. To do so you will need to control a thread that loops and calls Panel’s repaint method.
Create a Frame and put three of the above containers. Append a list for the user to select from a range of thread priorities. Can you see any difference on your animation?