Lập trình .net 4.0 và visual studio 2010 part 11

Vì vậy, những gì thay đổi sau đó? Trước khi 4,0 NET, một máy trạm có thể đồng thời GC. Làm nhất nhưng không phải tất cả của một thế hệ 0 và 1 bộ sưu tập cùng một lúc như là một thế hệ 2 bộ sưu tập. | CHAPTER 4 CLR AND BCL CHANGES Garbage Collection in .NET So what s changed then Prior to .NET a concurrent workstation GC could do most but not all of a generation 0 and 1 collection at the same time as a generation 2 collection. The GC was also unable to start another collection when it was in the middle of a collection which meant that only memory in the current segment could be reallocated. In .NET however concurrent workstation GC collection is replaced by background garbage collection. The simple explanation and GC gets very complex is that background garbage collection allows another GC gen 0 and 1 to start at the same time as an existing full GC gen 0 1 and 2 is running reducing the time full garbage collections take. This means that resources are freed earlier and that a new memory segment could be created for allocation if the current segment is full up. Background collection is not something you have to worry about it just happens and will make your applications perform more quickly and be more efficient so it s yet another good reason to upgrade your existing applications to .NET . Background collection is not available in server mode GC although the CLR team has stated they are aiming to achieve this in the next version of the framework. The GC team has also done work to ensure that garbage collection works effectively on up to 128 core machines and improved the GC s efficiency reducing the time needed to suspend managed threads For more information and a detailed interview with the GC team please refer to http . com ukadc archive 2009 10 13 and http channel9. shows Going Deep Maoni-Stephens-and-Andrew-Pardoe-CLR-4-Inside-Background-GC . sterF orF ullGCNotification It is worth noting that from .NET the CLR has a method called that lets you know when a generation 2 or large heap object collection occurs in your applications. You .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.