now choosing longest domain size in thread manager