Much to debate here I guess, but when it comes to Threads, and ways to improve performance, and response times, vs CPU usage, Overlap and etc...I wondered if there is a 'general "Rule" of thumb' that some or most should follow?
My own personal rule is to use Threads when I need to "multi-task", but only if I need to, because debates are that after "so many threads" could counter-act the purpose of multi-tasking (AKA...do to much at once, you spend all your time "Multi-Tasking" and not actually using the data that you are after)
So my question is this....how much is too much? (obviously it depends on CPU, OS and time slices) but thought I would ask.
Looking at my own list of comments, I can see the detrimental effects, but thought I would ask since debates and documents just more or less say the limit is "It Depends"
My own personal rule is to use Threads when I need to "multi-task", but only if I need to, because debates are that after "so many threads" could counter-act the purpose of multi-tasking (AKA...do to much at once, you spend all your time "Multi-Tasking" and not actually using the data that you are after)
So my question is this....how much is too much? (obviously it depends on CPU, OS and time slices) but thought I would ask.
- 10 threads - (Small in my mind)
- 100 threads - (Ok, if I have to, but maybe time to start re-thinking things depending on what each thread is working on)
- 1000 threads - (Ummmm...could I be LESS serious?, If I need that many something is DEFINITELY wrong
- 10,000 threads - (OK, anyone with that many probably ground their PC to a halt enumerating files or database tables and need a higher end computer to NOT grind to a halt
Looking at my own list of comments, I can see the detrimental effects, but thought I would ask since debates and documents just more or less say the limit is "It Depends"
Comment