garbage collection - Why are file handles such an expensive resource? -
Whether garbage collection is a good thing or not, people often say that things like freeing this file Does not handle handles. By putting this argument in the final form, it is considered a bad thing because the resource is again free from non-deterministic votes, however, it seems that easy solution will be for the OS, to ensure that many more All file handles are available so that they are a cheap and abundant resource and you can waste something at any time. Why is not this done in practice?
A file is written off on disc by shutting down - OK, anyway from its application standpoint After closing a file, the application may crash, as long as the system does not crash automatically, it is not a good idea to close GC in your vacation. Even if it can be technically possible nowadays.
Besides, tell the truth, it is difficult to kill old habits hardly. File handles which are expensive and are still considered for historical reasons.
Comments
Post a Comment