Morgan Stanley Interview Question

What happens when a file that a process is using is deleted

Interview Answers

Anonymous

Jan 14, 2015

That would depend on how the process is using the file. Does the file remain open while the process is ran? If so, it would throw an error. If the process keeps opening and closing it, is it read, write, append? Read would throw an error, append and write would not throw an error.

2

Anonymous

Apr 4, 2011

The process would core dump or hang.