22 Jun 2012 07:07
nanosleep over multiple processes
Randi Botse <nightdecoder <at> gmail.com>
2012-06-22 05:07:03 GMT
2012-06-22 05:07:03 GMT
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! -- To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to majordomo <at> vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
RSS Feed