What is a Thread A thread is a single sequential flow of control withing a process. Sometimes also known as an execution control or lightweight process.
Threads are subtasks in a program that can execute in parallel.
Thread has only code. It shares data with parent. Handle user input, if a threaded animation is to be stoped. Avoid creating too many threads. As an error occurs, you throw an exception to signal an error, and handle the exception in a catch statement.