The program flood
A program that writes lines to its terminal as fast as it can.
Each line has four runs of text with four styles: a number, a level, a name, a text. The program sends no escape sequence: the style of a run is a field of its record. The status has the count of lines.
The program has no surface. It reads the keys of the person from its terminal: the key Space stops the lines, and starts them again. While the lines do not move, the program waits for a key and uses no processor.
| Fact | Value |
|---|---|
| Source | programs/flood |
| Boot image | in the boot image; the image is not built, so its size is not known |
| Imports | none |
| Imported by | none |
Exports
| Export | What it does |
|---|---|
| entry() |
Read from the source of the module, as the build reads it to describe the exports (tools/kerneltool/describe.odin).
What the root service gives it
| What | Value | As the root service says |
|---|---|---|
| Grants | {.Terminal} | |
| Budget: pages, programs, threads | {pages = 256, programs = 1, threads = 1} |
Read from grants_of and things_of in programs/root/main.odin; budget_of in the same file adds the limits of processor time and of log records.
