Hallo Heiner, * Heiner Lamprecht schrieb:
Am Dienstag, 8. Mai 2001 23:48 schrieb Thorsten Jens:
Nein, der Swapper ist kein eigener Prozess, sondern Teil des Kernels.
Da wär ich gar nicht mal so sicher ... Natürlich wird der kswapd von Kernel aus aufgerufen, aber es ist zumindest ein eigener Thread. Ausserdem hat er seine eigene PID, deswegen denke ich dass der kswapd schon eine eigener Prozess ist. Das fork() hab ich aber gerade nicht gefunden ...
Linux realisiert alle Threads als "eigene Prozesse", zumindest tauchen sie mit einer eigenen PID in der Prozesstabelle auf, sind also daran nicht von normalen Prozessen zu unterscheiden.
Zu dem Thema gibt es in der c't 09/2001 Seite 228 einen sehr lesenswerten Artikel von Andreas Jäger. Es gibt wohl kein POSIX konformes Thread-Handling im Linux-Kernel. ciao Waldemar -- * A good website for linuxsoftware: | (o_ * * http://www.sourceforge.net | //\ * * Linux rulez! ;-) | V_/_ * * GnuPG-Key: 0xBE21BD90 | Tux: #155220 | ICQ: 64035650 *