Are .NET threads different from operating system threads?

后端 未结 2 756
-上瘾入骨i
-上瘾入骨i 2021-02-12 14:31
  1. Are .NET threads lightweight user-mode threads or are they kernel-mode operating system threads?

  2. Also, sparing SQL Server, is there a one-to-one corresp

2条回答
  •  爱一瞬间的悲伤
    2021-02-12 15:28

    .NET's threads are indeed abstractions, but you can basically think of them as nearly identical to OS threads. There are some key differences especially with respect to garbage collection, but to the vast majority of programmers (read: programmers who are unlikely to spin up WinDBG) there is no functional difference.

    For more detail, read this

提交回复
热议问题