Hacker News new | ask | show | jobs
by andy_threos_io 1885 days ago
In our operating system (threos [1] ) this is the way the loader works (page fault exception handling code is from the loader task, mapped and running in the owner context)

Also if you have permission, you can call CreateThread [2] system call and start a thread in other task. (Normally you don't have permission.)

[1]: https://threos.io/

[2]: https://threos.io/docs/threos/html/syscall.html#syscall_Crea...

Handle CreateThread(Handle task, PFN_THREADENTRY start, void* data, uintptr_t type, void* sp);