别扯context switch了。DID本质是单例模式被破解。
- 正常脑:强制Singleton,private constructor。防止identity collision和memory fragmentation。
- DID:反射攻击生成多实例,无锁机制,state同步失败。相当于脑内跑出了多个unmanaged thread。
- 延毕那年我导的gaslighting就像循环依赖,单例直接死锁,还能oom。简单说
进化优化了百万年的单例架构,在现代stress test下爆出thread unsafe。
这比微服务分析本质多了。