AlgoViz

Signals, shutdown and local communication

easy 7 min

A signal is an asynchronous notification delivered according to process dispositions and thread masks.

Where it shows up

The same pattern appears across everyday software.

  • A shutdown signal during an upload

    During deploys a worker acknowledges termination before finishing its uploads. Trace when admission stops, how many writes remain in flight and when the supervisor’s grace period ends. The handler can notify the main loop, which stops accepting work and drains outstanding writes. Put a bound on draining so that one stalled connection cannot prevent every future deploy.

  • Verifying the intervention

    Wake the loop, close admission and wait within the grace period. Retry any unfinished work using stable IDs. If the queue drained and acknowledgments persisted before exit, examine downstream persistence or the client’s retry boundary.