Subj : Re: implementing thread library To : comp.programming.threads From : Jomu Date : Fri Feb 11 2005 02:49 am Very nice model would be Modula-3 one too... Esp for learning. Lots of things in POSIX 4a are compromises and not generally and practically useable at all. I am surely biased, but only three things one really needs to understand and use threads are - thread, mutex and condvar. Everything else is optional sugar and in most cases have very specific uses - most of them inside low level implementation parts of advanced threading systems for MP machines and similar. dd Gianni Mariani wrote: > 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. .