Skip to content

Commit e9e2c5d

Browse files
模拟集合点及其使用
1 parent 1b51812 commit e9e2c5d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/EConcurrency/Sync/AssemblePoint/AssemblePoint.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package EConcurrency.Sync.AssemblePoint;
22

3+
/**
4+
* 模拟集合点
5+
*/
36
public class AssemblePoint {
47

58
private int n;

src/EConcurrency/Sync/AssemblePoint/AssemblePointDemo.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package EConcurrency.Sync.AssemblePoint;
22

3+
/**
4+
* 使用集合点示例
5+
*/
36
public class AssemblePointDemo {
47

58
static class Tourist extends Thread {

0 commit comments

Comments
 (0)