/** Copyright 2006, Axel DΓΆrfler, axeld@pinc-software.de.* Distributed under the terms of the MIT License.*/#include <OS.h>#include <syscalls.h>status_tlooper(void *){while (true) {_kern_thread_yield();}return B_OK;}intmain(){thread_id thread = spawn_thread(looper, "Real-Time Looper", B_REAL_TIME_PRIORITY, NULL);if (thread < B_OK)return -1;resume_thread(thread);wait_for_thread(thread, NULL);return 0;}