C#8.0本质论第十四章–事件
委托本身是一个更大的模式(Pattern)的基本单位,称为Publish-Subscribe(发布-订阅)或Observer(观察者)。
14.1使用多播委托实现Publish-Subscribe模式
14.1.1定义订阅者方法
public class Cooler
{public Cooler(float temperature){T…
jmap -heap pid 展示pid的整体堆信息
bash-4.4# jmap -heap 10
Attaching to process ID 10, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 25.172-b11using thread-local object allocation.
Garbage-First (G1) GC with 8 th…