if (thread_exists (thread_id))                   if (thread_exists (thread_id, process_id))
{                                                {
  ...                                              ...
}                                                }
