Skip to content

'Synchronized' in PhCached.java Risks Thread-Safety, Requires ReplacementΒ #4907

@0pdd

Description

@0pdd

The puzzle 4884-73fc2856 from #4884 has to be resolved:

* @todo #4884:30min Replace 'synchronized' with ReentrantLock.
* We need to replace 'synchronized' with ReentrantLock to avoid potential
* deadlocks when multiple threads are trying to access the cache simultaneously.
* Moreover, 'synchronized' keyword is forbidden by qulice.

The puzzle was created by Yegor Bugayenko on 01-Mar-26.

Estimate: 30 minutes, role: DEV.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions