sys_tgkill — send signal to one specific thread
the thread group ID of the thread
the PID of the thread
signal to be sent
This syscall also checks the tgid and returns -ESRCH even if the PID exists but it's not belonging to the target process anymore. This method solves the problem of threads exiting and PIDs getting reused.