Figure 1: Thread states