Thread class copied