.net的gc到底会不会中断进程?
以前看了很多前辈说的是gc期间会stop the world,但是最近看msdn文档 ,说的是并发垃圾回收,在0代和1代 时间占用少采用非并发,在2代中使用并发gc回收(回收过程中 大部分时间并不会stop the world)。
我想知道实际工作中gc stop the world 的情况,我用vs 自带工具 在debug中检查gc 时间 1代 20毫秒, 2代 35毫秒,在实际生产中stop the world 的时间大概是多少? 可以使进程 stop the world控制在10毫秒内吗?(gc时间 并不是 stop the world 时间)