I am using kill(pid,0) using c program to test a process on linux. But there is no process with pid running & another process pid1has same thread id as pid. Hence kill return success(process exists,but no process with that pid). But I am looking for similar api that checks only process level with similar performance like kill. Can any one please help on this.