Lets say I have a file 1.c.
#include<stdio.h>
main()
{
while(1);
}
If I compile this using, cc 1.c i will get an executable i.e. a.out
If I run this it will be in infinite loop, while this process is running I am able to delete a.out
Where in same case if I start some movie/video and then if I try to delete it then i will not be allowed to.
Why ?