LockSupport.parkNanos is a lower level approach to waiting threads and its behavior has been shown to be unpredictable across different OSes.
https://catap.medium.com/sleeping-at-jvm-thread-for-a-very-short-period-107339eaf8d5
https://hazelcast.com/blog/locksupport-parknanos-under-the-hood-and-the-curious-case-of-parking/
Need to decide on the minimum time related granularity to be supported between sample writes to MQTT. 1 ns is not a very real use case. However a virtual device should be able to support a granularity of less than 1 ms.
LockSupport.parkNanosis a lower level approach to waiting threads and its behavior has been shown to be unpredictable across different OSes.https://catap.medium.com/sleeping-at-jvm-thread-for-a-very-short-period-107339eaf8d5
https://hazelcast.com/blog/locksupport-parknanos-under-the-hood-and-the-curious-case-of-parking/
Need to decide on the minimum time related granularity to be supported between sample writes to MQTT. 1 ns is not a very real use case. However a virtual device should be able to support a granularity of less than 1 ms.