Design ThreadPool to satisfy the QPS

Assume you have a machine which has 4 cpu cores, and 8GB memory. The single task using 90ms to do the IO event, and 10ms to do the CPU calculate event, so the total response time is 100ms. How can you design the ThreadPool to make the QPS up to 1000 ? How about If the single task using all 100ms to do the CPU calculate event ?

Comments (10)