update pthread