Exactly! It's the same thing with memory management primitives. If you expose malloc and free directly to an application programmer, things will eventually get buggy.
It's better to hide the locking primitives and let the runtime handle it for you safely.
It's better to hide the locking primitives and let the runtime handle it for you safely.