DR original capacity workshop / Laboratório original de capacidade
python3 content/labs/micro-capacity/run.py --output /tmp/dr-capacity-new-run.json
PT: Usa um caminho novo. Não substitui relatórios anteriores. Doze grupos usam
threads próprias, Events e semáforos locais. Compara dois lugares partilhados
com um lugar batch e um crítico; a espera expirada não termina o worker.
Inclui rejeição antes de criar threads, recuperação após erro, contador
libertado cedo, dependência comum e doze admissões sequenciais com peak=1.
EN: Use a fresh output path. Existing reports are not overwritten. Twelve groups
use owned threads, Events and local semaphores. Two shared slots are compared
with one batch and one critical slot; expired waiting does not end a worker.
Includes rejection before thread creation, recovery after error, premature
counter release, a shared dependency and twelve sequential admissions at peak=1.
Boundary / Limites: one process; no HTTP, database, cloud, benchmark, automatic
retry, cancellation protocol, fairness, preemption, borrowing or CPU isolation.
The downstream case represents capacity with a counter, not a database.
All owned workers are joined. No permanent server is started or changed.
