Is there sample code I can use to test out kernel-space threads?
By popular demand: Linus's clone example [clone.c].