Slide 31
Slide 31 text
I/O-bound and CPU-bound operations
I/O operations
- reading or writing to a file, database, or network
- involves a lot of waiting for other hardware systems to complete their work
- the upper bound for thread pool is fairly large (64 threads or unbound)
CPU-intensive operations
- compressing or decompressing, encryption or decryption in-memory data, image
transformation
- CPU won’t pause the execution as it does for an I/O operation
- the upper bound for thread pool is to the number of cores the CPU has (and
thus the number of threads it can run in parallel)