PS creates a folder 'PSAutoRecover' on the scratch disk and saves a copy of the file, after a crash PS will restore the file from the back up. When the original file is saved normally the backup copy is cleared from the recovery folder.
It seems to work pretty well on a MacPro.