|
|
Why are there two threads APIs on UnixWare? Which should I use? |
| UnixWare 7 has two threads APIs: SVR4/UI threads and POSIX threads (sometimes
also known as pthreads). Both are implemented in UnixWare's libthread threads
library and associated system headers. The two have generally similar sets
of functionality and generally can interoperate on UnixWare.
SVR4/UI was a Unix International (mostly Sun and AT&T/USL) effort at defining a threads API. It has calls of the form thr_create() et al. You will see this API used in some existing UnixWare and Solaris applications. POSIX is a later, more standards-based threads API. It has calls of the form pthread_create() et. al. You will see this API used in most applications today across a broad range of platforms.
POSIX threads is definitely the API to use, unless you are working in an
existing code base that already uses SVR4/UI threads.
| |
| [Append to This Answer] |
| Previous: |
|
| Next: |
|
| ||||||||