store a set of threads instead of a tree