Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

以下说法正确的是 ( )(3分) A. 要在多个线程间安全的同步共享数据就必须使用锁,新的并发工具包中的线程安全对象或者其它具有锁效应的线程安全数据结构 #40

Open
waylau opened this issue Jul 4, 2020 · 0 comments

Comments

@waylau
Copy link
Owner

waylau commented Jul 4, 2020

以下说法正确的是 ( )(3分)

A. 要在多个线程间安全的同步共享数据就必须使用锁,新的并发工具包中的线程安全对象或者其它具有锁效应的线程安全数据结构
B. 建议使用线程组来管理线程资源
C. 缺省的线程名Thread-n无法区分出是哪个线程,给问题定位带来不便
D. Thread.yield()对线程调度器仅仅是个提示,不保证确定的效果,因此代码也不能依赖Thread.yield()方法

你的回答A、C、D \A、B、C、D \A、B、D 是错的。暂时不知道答案

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant