If you are memory constrained watch out on creating too many threads. As suggested use a thread pool if needed - also check the thread stack size.