Suggest using pthread serialization calls on UN*X.