Path: utzoo!news-server.csri.toronto.edu!rutgers!gatech!usenet.ins.cwru.edu!ida!shulman From: shulman@alpha.ces.cwru.edu (Leo Shulman) Newsgroups: comp.unix.internals Subject: How can a process put another process to sleep? Message-ID: <1991Mar12.221259.19670@usenet.ins.cwru.edu> Date: 12 Mar 91 22:12:59 GMT Sender: news@usenet.ins.cwru.edu Organization: Computer Engineering and Science, Case Western Reserve University Lines: 25 Originator: shulman@ida.CES.CWRU.Edu Nntp-Posting-Host: ida.ces.cwru.edu I need some help with the following problem: I am trying to put a process to sleep from within another process (both are executing "C" code). I am currently doing it by sending a SIGSTP signal, and a SIGCONT to resume. Unfortunately, this takes too long. What I need is something that performs a similar task to sigpause() or pause(), but can be done from a different process. That is, the process that will be put to sleep will be "Z" and not "T". This should increase the speed to a reasonable level. If this is impossible, is there a way to see the current status of a particular process from within another one (i.e. to see whether process A is sleeping, stopped, exiting, etc...). This would also solve my problem, although not as cleanly. I will appreciate any suggestions I get. Thanks in advance. -- Leo Shulman Case Western Reserve University Cleveland, OH 44106