update pthread operation