Client Server application using ptheads