JackyAndroid / JackyAndroid/AndroidInterview-Q-A

什么导致线程阻塞-58-美团 内容有问题,导致读的时候容易理解错误

Open
#35 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

初看起来它们与 suspend() 和 resume() 方法对没有什么分别,但是事实上它们是截然不同的。区别的核心在于,前面叙述的所有方法,阻塞时都不会释放占用的锁(如果占用了的话),而这一对方法则相反。

这句话应该是
初看起来它们与wait()和notify()方法没有什么分别

这里写的给人感觉,好像是在特殊说明suspend和resume,但实际上后面发现是在说wait和notify

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the interview-answer text discussing suspend(), resume(), wait(), and notify(). Update the misleading sentence so it compares wait() and notify() rather than suspend() and resume(), then review the surrounding paragraph to ensure the explanation is consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.