With the help of thread libraries, programmers can implement multi-threading in their programs. Libraries could be either user space (C++, Java, etc.) or kernel space (system calls.)
The three most popular thread libraries are:
Here are links to screenshots with sample C programs that use the POSIX Pthreads library and the Win32 threads library.
In the next slides, we describe and illustrate how a Java threads example works.