client pthread