Add create_thread and end_thread syscalls.