.NET에서 워커(worker) 스레드의 Abort() 호출하면 하면 바로 중지?

Thread.Abort() 혹은 Thread.Suspend()를 호출하면 바로 즉시 멈출까요?

아닌것 같네요.


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.

CLR이 Safe Points를 찾아서, 그곳에서 멈춘다네요.

댓글

댓글 쓰기

이 블로그의 인기 게시물

Oracle NLS_DATE_FORMAT 변경

Stop console process using Ctrl+C.

Alternative to IValueConvert, QuickConverter