Do you know the main difference between Java and .Net garbage collectors? There is not much information in a web search, and it was a question that came in a test.
The difference is between CLR (Net) GC and JVM GC, languages which are not themselves. Both are subject to change and the specifications of their behavior are loose, so that it can be changed without affecting the correctness of the program.
Some historical differences are mainly due to reasons. Net is being developed with lessons of development, Java (and other GC based platforms) do not assume that the Net was somewhat better because it had a workflow from the beginning, this is the result of coming later.
A remarkable publicly visible difference is that MSGC exposes its generation nature (through GC API), it is likely to be true for some time as it is possible There is a clear view to take on the basis that most programs show: Most allocation remains very low.
The initial JVM did not have the generational garbage collector, although this facility had increased rapidly. The first generational collector mark and swipe to be applied by Sun Oracle and others were realized that a mark-sweep-compact approach led to better memory terrain to justify additional copy overhead Will do The CRR runtime began with this behavior.
Sun Oracle and Microsoft's GC implementation 'ethos' is the difference between one of the configurations.
provides several options (on the command line) to improve the aspects of GC or switch between different methods, there are several options -X or -XX , Which indicate the lack of support in different versions or vendors. In contrast, CLR is not available next to any configuration qualification; Your only real option is to use the server or client collectors, which are optimized for the throughput worksheet, respectively.
Active research in GC strategy is being run in both companies (and open source implementations), the most recent GC implementation per thread in Aadan areas (Improvements in the area and the Eden collection does not possibly cause full stoppage breaks. ) As well as pre-permanent perspectives that Eden attempts to avoid having some allocation in the generation.
Comments
Post a Comment