I'm trying to calculate the maximum number of threads that can be created for a specific application based on my system configuration.
I've gone through one formula for this:
N_threads = N_cpu * U_cpu * (1 + W / C)
where,
N_threads is the optimal number of threads
N_cpu is the number of prcessors
U_cpu is the target CPU utilization
W / C is the ratio of wait time to compute time (0 for CPU-bound task, maybe 10 or 100 for slow I/O tasks)
Based on what W/c is calculated for I/o bound tasks.
Can anyone please help me out regarding this issue ...