apps to write thesis research paper on deadlock prevention