Nguyễn Linh Trang
New member
What is difference between reentrant and thread-safe functions?
Answer
Thread safe code is one that can be performed from
multiple threads safely
, even if the calls happen simultaneously on multiple threads. … Reentrant code means that you can do all the things thread safe code can do but also gurantee safety even if you call the same function within the same thread.
Answer
Thread safe code is one that can be performed from
multiple threads safely
, even if the calls happen simultaneously on multiple threads. … Reentrant code means that you can do all the things thread safe code can do but also gurantee safety even if you call the same function within the same thread.