Homework about threads