3 WIN: kernel with processes and shared registry
(require dos/win) | package: dos |
dos/win takes dos/os2 and fixes the state as a environment, or registry, or hash that maps symbols to sets of values (represented as lists.)
Identifies dos/win
kernel states.
Constructs a kernel
state where each of the p are initial processes.
procedure
(win-write [#:threads ts] key val ... ...) → env?
ts : (treeof (-> env? env?)) = null key : symbol? val : any/c
Spawns new threads ts and
adds mappings from each key to each val to the
registry. Returns the next registry.
Like
win-write but does not return.
Returns the
environment that p writes when given cur.
Returns a value that e holds for k or
default if it holds none.
Returns the values that e holds for
k.
Simulates one cycle of the kernel
cur’s operation and returns a new kernel state.
These functions cannot be called from inside processes, because they cannot capture win? values.
Returns a new kernel state where the registry maps k to
vs.
procedure
(win-env-read w k) → (listof any/c)
w : win? k : symbol?
Like
env-read, but on the environment of w.
procedure
(win-env-read1 w k default) → any/c
w : win? k : symbol? default : any/c
Like
env-read1, but on the environment of w.