|
When is Multi-Threading Useful?Multi-threading is useful for ensuring that the processor is not left around waiting for a slow process to occur. Slow processes are typically things like:
These are the situations when multi-threading can be useful because they ensure that the processor is not left waiting around for a slow operation to complete. Instead they can be actively working on something useful. Consider the following case:
This is a good case for using multiple threading since one could have a fast thread receiving, queuing and acknowledging the messages and a slow thread doing the data base processing. |