what is the difference between re-entrant function and recursive function in C?
问题 In C I know about the recursive function but I heard about the re-entrant function. What is that? And whats the difference between them? 回答1: A function is re-entrant if it supports having multiple threads of execution "going through" it at the same time. This might be due to actual multi-threading, and I use this case below, or due to other things as pointed out by other posters. Multi-threading was the first that came to mind, and is perhaps also the easiest to understand, so I focused on