Skip to content

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

@karel-rehor

Description

@karel-rehor

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions