kernel threads

From: Christian Widmer (cwidmer@iiic.ethz.ch)
Date: Thu Aug 16 2001 - 17:23:35 EST


i'm new to in developing kernel software under linux and what to
know if i'm write when i create kernel_threads like this:

variant I
---------
1) call kernel_thread
2) in the thread function
    a) get the big kernel lock
    b) call daemonize
    c) release big kernel lock

variant II
----------
schedule the call to kernel_thread using tq_schedule

- is there no need to call daemonize in the second variant - if yes why?
- can i do both variants during interupt time (when there is no valid
current)?

chris
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 23 2001 - 21:00:18 EST