.NET에서 워커(worker) 스레드의 Abort() 호출하면 하면 바로 중지?
Thread.Abort() 혹은 Thread.Suspend()를 호출하면 바로 즉시 멈출까요?
아닌것 같네요.
CLR이 Safe Points를 찾아서, 그곳에서 멈춘다네요.
아닌것 같네요.
Most of these methods are self-explanatory, but the concept of safe points may be new to you. Safe points are locations in code where it is safe for the common language runtime to perform automatic garbage collection, the process of releasing unused variables and reclaiming memory. When you call the Abort or Suspend method of a thread, the common language runtime analyzes the code and determines the location of an appropriate location for the thread to stop running.
좋은 정보입니다~
답글삭제