Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a Re-entrant procedure?

Tags:

People also ask

What is reentrant and recursive procedure?

Reentrant and Recursive procedures. • Reentrant procedures: The procedure which can be interrupted, used and “reentered” without losing or writing over anything. • Recursive procedure: It is the procedure which call itself.

Which of the following functions are re entrant?

One function is said to be a reentrant function if there is a provision to interrupt that function in the course of execution, then service the ISR (Interrupt Service Routine) and then resume the task. This type of functions is used in different cases like, recursions, hardware interrupt handling.

What is the difference between reentrant and non reentrant functions?

A reentrant function does not hold static data over successive calls, nor does it return a pointer to static data. All data is provided by the caller of the function. A reentrant function must not call non-reentrant functions.


What is a re entrant procedure and can you give an example scenario of when it is used?

Edit: Also, can multiple processes access a re entrant procedure in parallel?

Please provide a different way of explaining than wikipedia as I don't totally understand their description hence my question here