td = (struct thread *)mem;
td->td_sel = NULL;
td->td_sleepqueue = sleepq_alloc();
td->td_turnstile = turnstile_alloc();
td->td_rlqe = NULL;