Thread pools on the JVM should usually be divided into the following three categories:
- CPU-bound
- Blocking IO
- Non-blocking IO polling
Each of these categories has a different optimal configuration and usage pattern.
| #!/bin/sh | |
| # Set CPU to full performance on NVIDIA Jetson TK1 Development Kit | |
| if [ $(id -u) != 0 ]; then | |
| echo "This script requires root permissions" | |
| echo "$ sudo "$0"" | |
| exit | |
| fi | |
| # To obtain full performance on the CPU (eg: for performance measurements or benchmarking or when you don't care about power draw), you can disable CPU scaling and force the 4 main CPU cores to always run at max performance until reboot: |