data structure representation for threading