Minor update to the script files of two multi-threading examples