While creating a file, you provide the name of a file to operating system and it creates file and returns you the handle.
I am curious to know how it is created.
Does the operating system do some kind of hashing on file name to create a unique file handle or does it increase count of created files and return it as a file handle?