kernel threads and mplock

Hidetoshi Shimokawa simokawa at sat.t.u-tokyo.ac.jp
Mon Jul 12 00:09:16 PDT 2004


Hi,

I have a question about kernel threads synchronization on DFB.
A comment in lwkt_thread.c says:

 * NOTE!  By default new threads are created with the MP lock held.  A
 * thread which does not require the MP lock should release it by calling
 * rel_mplock() at the start of the new thread.
 */

Where can I find an example for thread running without MP lock?
I heard that TCP protocol stack has multiple kernel threads.
Do they actually run concurrently on multiple cpu now?
I can't find where they release MP lock.

It seems that most of the kernel threads are running with MP lock
now. Right?

/\ Hidetoshi Shimokawa
\/  simokawa at xxxxxxxxxxxxxxxxxxx
PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html





More information about the Kernel mailing list