Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M6299

Reentrancy

Reentrancy
SystemsHigh supportSystems Theory
Included
account_tree

Version 1.0.0 · Updated 2026-07-30

CORE DEFINITION

A function that is interrupted during execution (e.g., called by a signal handler) and then called again. If it can execute correctly without corrupting the previous state, it is 'reentrant'. The premise is: not relying on global variables, only using local data.

SCAFFOLDING EFFECT

psychology

Reduce cognitive load

The ability to be interrupted at any time. Modern life is full of interruptions. To build yourself as a 'reentrant' system: work without relying on 'a specific mood' or 'continuous blocks of time' (global variables). Be interrupted at any time, resume at any time, and do it without errors.

anchor

Anchor fast decisions

Reentrancy refers to a program module that can be interrupted during execution and safely re-entered (called again), requiring that it does not depend on static shared state. In the context of smart contracts, reentrancy is a typical vulnerability.

MINIMUM ACTION

In progress 0/1

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%
account_treeGenealogyexpand_more
menu_bookReferencesexpand_more

Source support: Explicit

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/ReentrantZH · Explicit
    verified

RELATED MODELS