diff --git a/README.md b/README.md index 83f434e..e7431e4 100644 --- a/README.md +++ b/README.md @@ -217,7 +217,7 @@ the first run downloads the Alpine image (about 4 MB) from the GitHub release of your version and keeps it in `~/.cache/unkernel`. ```sh -npx unkernel --distro debian # Debian 13 instead (about 57 MB, downloaded once) +npx unkernel --distro debian # Debian 13 instead (about 78 MB, downloaded once) npx unkernel --distro none # no distro: the base shell (busybox) npx unkernel --data my-data.img # changes persist on a /data disk, created on first use npx unkernel --display --sound # a framebuffer and a sound card @@ -908,9 +908,11 @@ The SDK has some limits, on top of the kernel's [known limits](#-known-limits). There is no guest agent beyond terminal sessions, so you drive the guest through a terminal or its console, or over vsock with your own program. `stop()` doesn't shut the guest down cleanly, so prefer -`poweroff`. Only one kernel can run per thread. Types ship as `.d.mts` and use -the DOM's `WebAssembly` types, so a Node-only TypeScript project needs `"lib": -["dom"]` or `skipLibCheck`. +`poweroff`. Several kernels can run on one thread, but they share it: busy +guests take turns, while `worker: true` gives each kernel a thread of its own, +so they run in parallel. Types ship as `.d.mts` and use the DOM's +`WebAssembly` types, so a Node-only TypeScript project needs `"lib": ["dom"]` +or `skipLibCheck`. ## 🛠️ Building from source diff --git a/docs/1.sdk/15.options.md b/docs/1.sdk/15.options.md index 37dbcba..abef884 100644 --- a/docs/1.sdk/15.options.md +++ b/docs/1.sdk/15.options.md @@ -42,5 +42,5 @@ On top of the kernel's own limits: - There is no guest agent beyond terminal sessions, so you drive the guest through a terminal or its console, or over [vsock](/sdk/vsock) with your own program; guest programs reach you through [host commands](/sdk/commands). - Devices beyond the console are off unless asked for: `display`, `sound`, `soundIn`, `camera`, `shm`, `gpu`, `gl`, `vk`, `va`, `net`, [`serial`](/sdk/serial), [`bluetooth`](/sdk/bluetooth) and [`usb`](/sdk/usb) (vsock is on unless `vsock: false`). - `stop()` doesn't shut the guest down cleanly, so prefer `poweroff`. -- Only one kernel can run per thread. +- Several kernels can run on one thread, but they share it: busy guests take turns, while `worker: true` gives each kernel a thread of its own, so they run in parallel. - Types ship as `.d.mts` and use the DOM's `WebAssembly` types, so a Node-only TypeScript project needs `"lib": ["dom"]` or `skipLibCheck`.