Processes and address spaces

R-PROC-V4-2medium

Reach running workers

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

Make update apply a configuration change to the supervisor and to every running worker. Workers started after the update also begin with the new value.

Reproduce

  1. Run the program with stdin: set 100 limit 5, start, update limit 9, read 101 limit. Compare 101’s limit with the update.

Acceptance criteria

Your review marks · Saved in this browser. Test acceptance is tracked separately.

Notes

Edit (*ProcessTable).Update. Start, Stop, Set and Read are supplied.

update <key> <value> changes the service configuration; stop <pid> ends one worker.

memories maps each PID to that process’s Memory.

Sign in to open this exercise

The ticket brief is public. Sign in to access the exercise. Paid exercises require Pro.

Sign in