Salesforce Interview Question

How do you determine the number of threads a multithreaded application should have?