ozhera icon indicating copy to clipboard operation
ozhera copied to clipboard

Use Java20 and Coroutines in Ozhera: A Caution Against Synchronized and a Recommendation for ReentrantLock

Open goodjava opened this issue 1 year ago • 1 comments

At present, Java20 and coroutines are used in many places in Ozhera. Here, be careful with the use of synchronized, otherwise it can easily lead to threads being pinned. Try to use ReentrantLock in the code contributed. If you want to know more details, you can refer to a test case:https://github.com/XiaoMi/mone/issues/744

goodjava avatar Sep 28 '23 02:09 goodjava