Update thread.c.