Skip to content

[deadlock prevention tutorial] - Result of '100L * ((long) Math.random())' is always '0' #3

@canattofilipe

Description

@canattofilipe

Hi,

Thanks for the concurrency tutorial; I have learned a lot from it.

While debugging the classes Runnable1TimeOut and Runnable2TimeOut, I noticed that the sleep(long timeMillis) method is always being executed with a value of 0.

Screenshot from 2024-07-31 10-17-20

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions