simple cases with threads