-- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc OpenLDAP Core Team http://www.openldap.org/project/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This ladder locking is also known as lock-coupling in the database world.
It's a good solution when you have lots of tasks and need high concurrency,
and proven in a lot of literature. You might notice more overhead if you only
have a small number of tasks (e.g. 2-3) but it definitely scales better than
just holding onto one lock or a small number of locks.