Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: replace LockSupport.parkNanos with a different thread locking approach #21

Open
karel-rehor opened this issue Dec 4, 2023 · 0 comments

Comments

@karel-rehor
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant