Reentrant Lock, Spin Lock,Non-reentrant lock