Share until written
A job service runs a supervisor process (PID 100) that starts worker processes. Before changing the service’s worker-update path, check which process observes each value. This program is a synchronous model of private process memory; start snapshots the supervisor, and update represents delivery to all live processes. It does not start real processes or implement a delivery channel. Each stdin line is one command, and the program prints what each command reports.
What needs to change
Workers now share the supervisor’s storage at start. Complete memory writes while keeping the observable behavior: each process sees only what it held at its start, its own writes and configuration updates.
Reproduce
- Run the program with stdin: start, set 100 limit 3, read 101 limit, read 100 limit. Compare the two reads.
Acceptance criteria
Your review marks · Saved in this browser. Test acceptance is tracked separately.
Notes
Review ProcessTable. spaces maps each PID to a *Space containing a Memory and user count.
Set and Update call writable; main and the report format are supplied.
main and the command format are unchanged.