Thread pool size
Experienced Java/JavaScript full-stack developer over 6 years of extensive expertise serving key role on elite technical teams developing enterprise software for healthcare, apple ad-platform, banking, and e-commerce. Adaptable problem-solver with high levels of skill in Groovy, Java, Spring, Spring Boot, Hibernate, JavaScript, TypeScript, Angular, Node, Express, React, MongoDB, IBM DB2, Oracle, PL/SQL, Docker, Kubernetes, CI/CD pipelines, AWS, Micro-service and Agile/Scrum. Strong technical skills paired with business-savvy UI design expertise. Personable team player with experience collaborating with diverse cross-functional teams.
If a system has the P processors that have only got the computation type processes (CPU intensive task) then,
Max Size = P or P + 1
If a system has to perform I/O operation then,
Max Size = P * (1 + W/S)
Wait time (W) is the time a thread spends waiting for I/O operations to complete. For example, if a thread performs a read or write operation on a file or network socket, it may have to wait for the operation to complete before it can move on to the next task. Wait time can vary depending on factors such as the I/O device's speed, the number of threads accessing the device, and the complexity of the I/O operation.
Service time (S) is the time a thread spends performing actual work. This includes tasks such as data processing, computation, or any other operation that does not involve waiting for I/O. Service time can vary depending on the complexity of the task, the size of the data set, and other factors.