Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Oct 2001 09:48:17 -0600
From:      Stephen Montgomery-Smith <stephen@math.missouri.edu>
To:        Arjan Knepper <arjan@jak.nl>
Cc:        hackers FreeBSD <freebsd-hackers@FreeBSD.ORG>
Subject:   Re: Simple pthread question
Message-ID:  <3BE01D41.AB45760C@math.missouri.edu>
References:  <3BDFB5B5.5090102@jak.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
I have successfully used sleep in this situation.  I wanted a process that
activated every hour (it did some "garbage collection"), so it went something
like

while (1) {
  sleep(3600);
  do_stuff();
}

and the other threads worked fine.


Arjan Knepper wrote:
> 
> How do I suspend one particular thread without suspending the whole process?
> I can not use sleep or usleep can I?
> 
> TIA
> Arjan
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message

-- 

Stephen Montgomery-Smith
stephen@math.missouri.edu
http://www.math.missouri.edu/~stephen

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BE01D41.AB45760C>