nx_ppdemo_parallel.nx
buildroot/runtime/nx_ppdemo_parallel.nx
about
nx_ppdemo_parallel.nx -- a controlled MULTI-THREADED compute workload: the SAME arithmetic loop as
nx_ppdemo_serial, but split across a thread pool (8 real OS threads). nx_parallelism_probe should measure
cpu/wall ~= 8 (eight cores busy at once) and verdict PARALLEL -- the opposite of the single-threaded serial
demo, proving the probe distinguishes real parallelism from the codec trap. license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_thread_pool.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 7 | const K_MAGIC_500000000: i64 = 500000000 |
| 9 | const NW: i64 = 8 // worker threads (of the 16 cores; 8 keeps room for the pool machinery) |
functions
| 12 | func pp_heavy(ctx: i64) -> i64 |
| 22 | func main() -> i64 |