What is re-entrant code?

1 answer

Answer

1237305

2026-07-18 04:36

+ Follow

A reentrant function is a function which can be safely executed concurrently. This means it should allow a re-entry while it is running. The reentrant function should work only on the data given by the calling function. It must not have any static data also.

The term "reentrant" is used to refer to side wall profiles of the nozzles, wherein exit diameters of the nozzles are smaller than entrance diameters of the nozzles so that the side walls of the nozzles are not perpendicular to a plane defined by an exit surface of the nozzle member.

A Re entrant function is a function which guaranteed that which can be work well under multi threaded environment.

mean while function is access by one thread, another thread can call it... mean there is separate execution stack and handling for each...

So function should not contain any static or shared variable which can harm or disturb the execution..

mean it should not contain any static or shared variable....

Mean function which can be called by thread, while running from another thread safely...... and properly.... hope I have answered the correct thing....

And of course rem that re-entrant function is not same as recursive function.... totally different concept....

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.