KOS Foundation

KOS API What it does For Shachi
thd_create() Preemptive thread Heavy — use for disc I/O only
thd_worker_create() Worker thread (wake on demand) Good for async I/O worker
thd_pass() Yield current thread Can use for cooperative yield
timer_spin_sleep() Busy-wait sleep Avoid in game loop