It is possible that when Perses is writing to the best result file, Perses is killed. We need to have a better way to make sure the writing operation is atomic. In other words, we need to make sure it is either success or fail. For example, we can write to a temp file first, and then rename it to the best file.
It is possible that when Perses is writing to the best result file, Perses is killed. We need to have a better way to make sure the writing operation is atomic. In other words, we need to make sure it is either success or fail. For example, we can write to a temp file first, and then rename it to the best file.