1. A method comprising: accessing a shared memory associated with a reader-writer lock according to a first concurrency mode; dynamically changing from the first concurrency mode to a second concurrency mode; and accessing the shared memory according to the second concurrency mode.