// SDK location: /user/pspthreadman.h:291
        // SDK declaration: int sceKernelResumeThread(SceUID thid);
        public int sceKernelResumeThread(int thid)
        {
            KThread thread = _kernel.GetHandle <KThread>(thid);

            if (thread == null)
            {
                return(-1);
            }

            thread.Resume();
            //_kernel.Schedule();

            return(0);
        }