Philosophers have been replaced to separate file and deadlock problem solved