...
Three points of interest are essential on threads:
- Which thread created a the current thread
- Which one starts it
- Which thread executes it
...
Its important to keep the principle of thread pools in mind. Its commonly used by web applications.
It allows the reuse of threads, which means there is no need to create new thread instances. This reduces overhead, since the system don't have to manage new threads(no new memory allocation etc.). .
Runnables
Runnables can be also reused.
But a thread cannot switch the Runnable during execution.