1.

What Is A Non Re­entrant Code?

Answer»

Re entrant code is code which does not rely on being executed WITHOUT INTERRUPTION before completion. Reentrant code can be used by multiple, simultaneous tasks. Reentrant code generally does not access GLOBAL data. Variables within a reentrant function are allocated on the stack, so each INSTANCE of the function has its own PRIVATE data. Non­reentrant code, to be used safely by multiple processes, should have access controlled via some synchronization method such as a semaphore.

Re entrant code is code which does not rely on being executed without interruption before completion. Reentrant code can be used by multiple, simultaneous tasks. Reentrant code generally does not access global data. Variables within a reentrant function are allocated on the stack, so each instance of the function has its own private data. Non­reentrant code, to be used safely by multiple processes, should have access controlled via some synchronization method such as a semaphore.



Discussion

No Comment Found