Documentation
¶
Overview ¶
Smpblinky tests the Go and noos schedulers. The onboard LED informs about the used CPU: CPU0 turns it off, CPU1 turns it on.
The first part of this test blinks the onboard LED three times, switching the running thread between CPUs. The second part spawns two busy threads and leaves the CPU selection to the schedulers. Now the onboard LED should bilink unevenly if the threads run on both CPUs.
See also weacta10/examples/smpblinky for better version of this program that uses two LEDs.
Click to show internal directories.
Click to hide internal directories.