On Windows, there's also Process Explorer[1], which can show you all your processes' threads, file handles, etc. (plus all the stuff you can see in Task Manager like memory and CPU usage). And it can search for which process has a particular file open. Very useful.
[1] https://en.wikipedia.org/wiki/Process_Explorer