Subj : Re: Implementing a lowlevel thread library in C++ for windows To : comp.programming.threads From : Joe Seigh Date : Mon Jun 06 2005 08:14 am DeltaOne wrote: > Hi, > I am supposed to implement a low level thread library for windows and > its for user level threads not kernel threads in C++. Although i have > programmed using UNIX threads but i dont have any knowledge of > implementing threads. Can any one suggest me some documents to go > through. > Look at Fibers which are part of the windows api. They're essentially coroutines and you'll have to create a whole api layer to put in your own. user thread scheduling. There won't be a whole lot of benefit from doing this and quite a bit of disadvantage. Do not use setjmp/longjmp to do userthread context saving/dispatching unless you are into extreme pain and failure. You're going to have to learn to write a scheduler/dispatcher and synchronization primatives. It's not a trivial exercise. Joe Seigh .