server thread add pthread process