linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* nanosleep over multiple processes
@ 2012-06-22  5:07 Randi Botse
  2012-06-22  5:53 ` Nicholas Mc Guire
  0 siblings, 1 reply; 6+ messages in thread
From: Randi Botse @ 2012-06-22  5:07 UTC (permalink / raw)
  To: linux-c-programming

Hi All,

In nanosecond precision, if I have multiple processes run nanosleep(),
how possbile they will get the same struct timespec value? both the
tv_sec and tv_nsec value. Of course the tv_sec (second) is most
possible, but how about the tv_nsec (nanosecond)?

I wan't to create a simple stupid unique id or something like that,
but with without too much effort. The unique id will be tv_sec +
tv_nsec.

Cheers!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-06-27 15:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-22  5:07 nanosleep over multiple processes Randi Botse
2012-06-22  5:53 ` Nicholas Mc Guire
2012-06-22  8:38   ` Randi Botse
2012-06-22  9:08     ` Hendrik Visage
2012-06-23 13:11     ` Vladimir Murzin
2012-06-27 15:44       ` Randi Botse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).