modus

The program processors

A demonstration of several processors.

First, the program asks the kernel what each processor runs, while four of its threads compute: the kernel answers that all the processors run threads of this one program at the same time.

Then 1, 2 and 4 threads compute the same picture, one row at a time. Each row has the tint of the thread that computed it. The panel shows the time of each picture, and the load of each processor.

The program needs the grant to inspect the machine.

FactValue
Sourceprograms/processors
Boot imagein the boot image; the image is not built, so its size is not known
Importsnone
Imported bynone

Exports

ExportWhat 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

WhatValueAs the root service says
Grants{.Inspect}
Budget: pages, programs, threads{pages = 2048, programs = 1, threads = 9}

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.