simple_thread use setjmp/longjmp and signal to implement user mode thread. ./simple_thread killall -s SIGUSR1 simple_thread can switch 2 thread.