DragonFly kernel List (threaded) for 2008-05
kthread_create and rel_mplock
If I understand the kthread_create correctly, it will always acquire the
mplock (something like a global lock). That means, if I create two
threads, they will automatically be serialized (i.e. run sequentially),
unless I release the lock within a thread manually. Is that correct?
Does that mean that I can remove the mtx_lock in the FreeBSD example
Is mtx_lock(&Giant) equivalent to the mplock on DragonFly?
My understanding is that it is equivalent, and that I don't need any
further critical sections.