An exception is thrown on the garbage collection thread when you use SQL providers.
使用SQLprovider时,垃圾回收线程抛出异常。
If the NHRT is delayed when trying to acquire such a lock while the thread owning the lock is delayed by garbage collection, then the NHRT is indirectly delayed by garbage collection as well.
如果NHRT在尝试获取这类锁时被延迟了,而且拥有该锁的线程被垃圾收集延迟了,那么垃圾收集也会间接地延迟NHRT。
That is, do not hold a lock if the owning thread might make a call that triggers a garbage collection.
也就是说,如果拥有的线程可能进行触发垃圾回收的调用,请不要持有锁。
Describes thread suspension and garbage collection.
描述线程挂起和垃圾回收。
One of those threads is likely to be a thread responsible for performing a garbage collection, so this deadlock can have a major impact on the entire process.
其中的某个线程可能是负责执行垃圾回收的线程,因此这种死锁对整个进程具有重大影响。
The common language runtime (CLR) can either run garbage collection concurrently on a separate thread or on the same thread as the application.
公共语言运行时(CLR)可以在单独的线程上或在与应用程序相同的线程上同时运行垃圾回收。
The common language runtime (CLR) can either run garbage collection concurrently on a separate thread or on the same thread as the application.
公共语言运行时(CLR)可以在单独的线程上或在与应用程序相同的线程上同时运行垃圾回收。
应用推荐