.net - Looking for ways to determine whether the machine is "overloaded" -
I have a setup where various agents have been assigned the task. My problem is that I Would like it to be "overloaded". I think the question is very ambiguous, so I'm going to expand a bit. A task usually gets something from the database, processes the data and then writes it back to the database (either one or the other). A lot of figures can come in some tasks and some - much less, are mostly main I / O bound, but some may include heavy CPU bound computation. The present agent architecture is such that an agent has a constant number of concurrent threads dedicated only to work - one thread per work (I know that this is bad, but this is a different story ). This type of thread is called the task thread Of course, they want the functions that worker threads are free to give any number of eggs work threads does not change in the number. However, when every task thread is busy performing some heavy tasks, then the agent nostalgic is busy. We recognize th...