Files
unkernel/js
Pooya Parsa 19c0d2aba4 Keep console output from different CPUs in the kernel's order (SMP)
A secondary CPU's console writes reached the host as messages, which CPU
0's host takes only when CPU 0 suspends, while CPU 0's own writes went
out at once, so lines printed on different CPUs interleaved. Every
fd_write now takes a number from a shared counter inside the import,
while the kernel still holds the lock that orders the writes, and CPU
0's host writes them by number (ConsoleOrder in js/core/cpu.ts). The
kernel is unchanged. An api test prints lines in turn from four
processes and checks their order.
2026-11-17 10:44:57 +00:00
..
2026-11-15 23:27:04 +00:00
2026-11-15 23:27:04 +00:00
2026-11-15 23:27:04 +00:00
2026-11-15 23:27:04 +00:00
2026-11-15 23:27:04 +00:00