Pergunta de entrevista da empresa Morgan Stanley

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

Respostas da entrevista

Sigiloso

14 de jan. de 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

Sigiloso

4 de abr. de 2011

The process would core dump or hang.