From: Philipp Berndt <archmage@cs.tu-berlin.de>
Newsgroups: comp.parallel.pvm
Subject: Re: SUNMP: pvmftrecv eating up CPU-cycles
Date: Wed, 16 Dec 1998 00:21:16 +0100
Organization: Technical University of Berlin
Message-Id: <3676EEEC.35373DB7@cs.tu-berlin.de>
References: <36769A83.24424D10@pa.twi.tudelft.nl>
Reply-To: archmage@cs.tu-berlin.de
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Edwin Vollebregt wrote:
> ...
> I'm not very familiar with C, so do you know of a good way
> to let a process do nothing for T seconds ?

Hello Edwin,
Probably sleep(T) is what you are looking for:

#include <unistd.h>
unsigned int sleep(unsigned int seconds);

sleep() makes the current process sleep until seconds seconds have elapsed

or a signal arrives which  is  not ignored.

Regards,
Philipp Berndt

