Notes

When I finally ditched my paper notebooks.

Re-entrancy

Reentrancy is an aspect of computation wherein the program or subroutine at hand is safe to be called irrespective of its other invocations or their state of interrupt. These are thus signal safe and are shareable stubs of code. It might resemble thread safety but over here it is about running concurrently on a single processor system. Thus, is different. Results need not carry any idempotency. Some rules for such a subroutine are :

  • Reentrant code may not hold any static or global non-constant data.

  • Reentrant code may not modify itself.

  • Reentrant code may not call non-reentrant computer programs or routines.

Last updated