Managed Thread vs Win32 Thread
Q: Is a managed thread just a thin wrapper over a Win32 (native) thread?
A: In many cases managed threads are just thin wrappers over OS threads. But in some cases they are actually mapped to fibers (which is why we do not expose Win32 thread ID) and there are many cases where we add significant functionality or have to provide a deeper implementation.
(Source: Zhanbo’s Weblog)
This question came up in my mind when I was looking through some material about Win32 fibers from the Platform SDK documentation. A simple Google search brought me to that. I am still looking for some material about the fiber (a very lightweight thread which even the operating system does not bother to schedule) implementation in Windows.
I think we will finally adopt the apr library in GridDistribute, but I am still evaluating different threading models on distinct platforms. On FreeBSD -CURRENT I tend to use KSE-based threads. If we are going to have a Windows port, what shall we use? I hesitate to reinvent the wheel when there is already one…
在线阅读本文并参与讨论 delphij's Chaos blog.delphij.net/posts/2004/01/managed-thread/