Subj : Re: implementing thread library To : comp.programming.threads From : Gianni Mariani Date : Wed Feb 09 2005 09:13 am varun wrote: > Hi..evryone..i am a student..and want to implement a thread library for > suporting multithreading..say..on linux..a smaller prototype..smwhat > like pthreads..i want to know..how to proceed to this problem..and what > are the requirements for it.. Just a thought, use TDD ... Demonstrate how you would use your thread library and tell us how it's better (in your opinion). I built a thread library in Austria C++ and I purposely used simple synchronization primitives. No "Event" or "Semaphore". No "Wait on multiple objects". The released version (0.8) is incomplete. What it will have is thread pools and queueable "activities". I think this is a paradigm that allows true thread safe "asynchronous" interfaces. So, in theory I can build classes are are both thread-safe and contained. .... just a thought. .