Types of | Judgments based | Number of thread pools |
---|---|---|
IO intensive | The amount of calculation and logical judgment is very large and concentrated | IO time/CPU time +1 (that is, the CPU time is taken as a unit to calculate the total number of threads for IO and CPU) |
Computationally intensive | The read data and output data of the disk are very large | Number of CPU cores +1 (+1 is to prevent blocking for some reasons) |