I imagine Java can do some party tricks with lock sharing too with fibers backed by the same OS thread.