A Reentrant function is a function which guarantees that it can work well under multi-threading environment.
It means when this function is accessed by one thread, another thread can call it without any bad side effect. This means that there should be separate execution stacks and handlings for all instances.
It is obvious that this function should not contain any static or shared variables which can cause problem for concurrent execution.
阅读(1185) | 评论(0) | 转发(0) |