Dear Zsolt,
You want to use pthread_cont_timedwait(). It's described in the manual
page pthread_cond(3).
It's also described in the GNU Info pages for "libc", in the node
"Condition Variables".
--Steve Augart
--
Steven Augart
Jikes RVM Open Source Java Virtual Machine Project
http://oss.software.ibm.com/jikesrvm
Office: +1 914/784-6743
Lukacs Zsolt
01/26/2004 01:22 PM
To: SuSE Programming
cc:
Subject: [suse-programming-e] Thread sleep
Hi,
I have created a process which cretes some threads. I would like to
sleep one thread (let's say for 500 ms) while the other threads are
still working.
Does anybody know how to do that?
I have already tried to use the sleep() function but it seems that it
the whole process goes to sleep not just olny one of the threads owned
by the process.
Thanks
Zsolt
--
To unsubscribe, email: suse-programming-e-unsubscribe@suse.com
For additional commands, email: suse-programming-e-help@suse.com
Archives can be found at: http://lists.suse.com/archive/suse-programming-e