DragonFly kernel List (threaded) for 2008-05
DragonFly BSD
DragonFly kernel List (threaded) for 2008-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: kthread_create and rel_mplock


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 18 May 2008 20:28:25 -0700 (PDT)

:Threads start with mplock held currently, but if your thread does want
:mplock, it will be wise to hold it explicitly.
:
:Best Regards,
:sephe

    Yah.  For kernel threads you can start a thread without the MP lock
    by creating it with TDF_MPSAFE set in the passed flags.  Otherwise
    the thread will start with the lock.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]