Java Thread Pool

Okay, so you want to try out thread pools?
Here’s what they do:

  1. Set the number of parallel operations you wish to allow simultaneously. ie. Dual core you want only 2 threads max running.
  2. Split up some math intense stuff into blocks. ie, building 3d meshes or processing sections of an image.

This test is two files which you can copy and paste into your editor and run.
ThreadPoolTest.java

WorkerTest.java