5.5.3 ThreadLocalDemo的结构
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 45/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java
- Domain
- documentation
Research direction
Start with the 第一篇5.5.3 ThreadLocalDemo example and compare the displayed nesting of ThreadA and ThreadB with the references in main. Confirm the intended class structure and correct the documentation so the example consistently names both runnable classes and their relationship.
Written by the indexing model from the issue text.
Description
章节
第一篇5.5.3 ThreadLocalDemo
相关截图或文字
public class ThreadLocalDemo {
static class ThreadA implements Runnable {
...
static class ThreadB implements Runnable {
...
}
public static void main(String[] args) {
ThreadLocal<String> threadLocal = new ThreadLocal<>();
new Thread(new ThreadA(threadLocal)).start();
new Thread(new ThreadB(threadLocal)).start();
}
}
}
疑问
这里ThreadB类是定义在了ThreadA类里面,是否可以将ThreadB和ThreadA并列:
public class ThreadLocalDemo {
static class ThreadA implements Runnable {...}
static class ThreadA implements Runnable {...}
public static void main(String[] args) {
ThreadLocal<String> threadLocal = new ThreadLocal<>();
new Thread(new ThreadA(threadLocal)).start();
new Thread(new ThreadB(threadLocal)).start();
}
}
- Dominant language
- Java
- Stars
- 4.6k
- Forks
- 719
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from RedSpider1/concurrent
-
3.3.2 缺词 Open
Difficulty 1/5 Under an hour Newbie friendliness 65/100
RedSpider1/concurrent#149 ·
-
3.2 错别字 Open
Difficulty 1/5 Under an hour Newbie friendliness 68/100
RedSpider1/concurrent#148 ·
-
2.8 错别字&配图失效 Open
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
RedSpider1/concurrent#150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
RedSpider1/concurrent#147 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 35/100
RedSpider1/concurrent#145 ·
All issues in RedSpider1/concurrent
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100