pseudo thread class