Sunday, November 18, 2007

Does Linux Support Threads or Lightweight Processes?

This article is from the Frequently Asked Questions for Linux, the Free/Open Source UNIX-like operating system kernel that runs on many modern computer systems. Maintained by David C. Merrill with numerous contributions by others. (v1.0).
A: As well as the Unix multiprocessing model involving heavyweight processes, which is of course part of the standard Linux kernel, there are several implementations of lightweight processes or threads. Recent kernels implement a thread model, kthreads. In addition, there are the following packages available for Linux.

*GNU glibc2 for Linux has optional support for threads. The archive is available from the same place as glibc2, *In or pthreads. Documentation isn't in the package, but is available on the World Wide Web at Newer Linux libc's contain the pthreads source. The GNU Ada compiler on contains binaries made from that source code. *In is QuickThreads. More information can be found in the technical report, available on the same site is /tr/1993/05/UW-CSE-93-05-06.PS.Z. *In, an Ada implementation. This is useful mainly because it has a lot of Postscript papers that you'll find useful in learning more about threads. This is not directly usable under Linux.



Twitter Delicious Facebook Digg Stumbleupon Favorites More