java - What does "inherently thread-safe" mean? -
i came across line "some functions inherently thread-safe, example memcpy()
"
wikipedia defines "thread-safe" as:
a piece of code thread-safe if manipulates shared data structures in manner guarantees safe execution multiple threads @ same time.
ok. inherently mean? related inheritance?
it not related inheritance. informal expression , means more like
"some functions thread-safe nature". example function not
touch shared values/state thread safe anyway i.e. "is inherently thread-safe".
Comments
Post a Comment