Using POSIX threads on mac X and solaris?
Does any one know of any advantages or disavtanges of using posix thread (pthread) on mac X and solaris compared to native implementations. Do pthread make call to native implementation in both these cases and is the maping between pthread and kernel object 1:1 . Thanks Sujeet I don’t know anything about the thread implementation on the mac. On Solaris, pthreads are roughly equivalent to the so-called solaris threads implementation. I believe that both APIs sit on top of lower-level calls. The main advantage of using POSIX threads is portability. The other is simplicity. % Do pthread make call to native implementation in both these cases and is the % maping between pthread and kernel object 1:1 . The mapping between pthreads and the kernel scheduling entity in Solaris depends on what you ask for. Note that you must be careful if you try to use the m:n model, because the Solaris two-level thread scheduler is crap. (this is not related to the API — it’s crap for both pthreads and UI thr