Scores of students flock to explain file descriptors, nobody notices that you can rename open files on Windows
reddit.com/r/askscience/comments/4d1w8x/why_c...Posted Apr 3, 2016, 2:30 AM UTC
Posted Apr 3, 2016, 2:30 AM UTC
I've taken a class in Operating Systems. The simplest answer is probably this: From the Windows perspective, you have a file identifier sitting right there as the file name. Why complicate things? From the OS X perspective, adding an extra, invisible file identifier allows you to allow some user-friendly operations, like renaming an open file.
Lol
You're wrong tho bro, you've been wrong since windows 1.0
You can rename an open file to a new unused name (IF existing file handles allow delete sharing, which isn't the default), but you CAN'T rename a file to an existing file that has any open handles, like you can in unix. Very frustrating to not have a guaranteed atomic overwrite of even a stupid config file.
PS You won't find that in the shitty msdn docs
Oh yeah I know windows has some differences there, it's more that has nothing to do with fucking inodes and file paths.
[deleted]
Only people like Jobs and Gates drop out. Dropping out is a power move.