Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DuGuQiuBai/Java
/ run
Method
run
day24/code/day24_Thread/src/cn/itcast_04/GetThread.java:11–18 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
9
}
10
11
@Override
12
public
void
run() {
13
while
(true) {
14
synchronized (s) {
15
System.out.println(s.name +
"---"
+ s.age);
16
}
17
}
18
}
19
20
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected