Skip to content

Commit

Permalink
docs: use ./mvnw instead of mvn in README
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Nov 10, 2023
1 parent b278735 commit b8be96e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ After the `main` thread field `stop` is `true`, the task thread continues to run
### Quickly run

```bash
mvn compile exec:java -Dexec.mainClass=fucking.concurrency.demo.NoPublishDemo
./mvnw compile exec:java -Dexec.mainClass=fucking.concurrency.demo.NoPublishDemo
```

## 🍺 Infinite loop of `HashMap`
Expand All @@ -104,7 +104,7 @@ The main thread Block is determined by no continuous output, that is, the endles
### Quickly run

```bash
mvn compile exec:java -Dexec.mainClass=fucking.concurrency.demo.HashMapHangDemo
./mvnw compile exec:java -Dexec.mainClass=fucking.concurrency.demo.HashMapHangDemo
```

## 🍺 Combined state read invalid combination
Expand All @@ -127,7 +127,7 @@ The second state read in the task thread is not twice the value of the first sta
### Quickly run

```bash
mvn compile exec:java -Dexec.mainClass=fucking.concurrency.demo.InvalidCombinationStateDemo
./mvnw compile exec:java -Dexec.mainClass=fucking.concurrency.demo.InvalidCombinationStateDemo
```

## 🍺 `long` variable read invalid value
Expand All @@ -149,7 +149,7 @@ In the task thread, a long variable whose upper 4 bytes and lower 4 bytes are di
### Quickly run

```bash
mvn compile exec:java -Dexec.mainClass=fucking.concurrency.demo.InvalidLongDemo
./mvnw compile exec:java -Dexec.mainClass=fucking.concurrency.demo.InvalidLongDemo
```

## 🍺 the result of concurrency count without synchronization is wrong
Expand All @@ -167,7 +167,7 @@ The count value is incorrect.
### Quickly run

```bash
mvn compile exec:java -Dexec.mainClass=fucking.concurrency.demo.WrongCounterDemo
./mvnw compile exec:java -Dexec.mainClass=fucking.concurrency.demo.WrongCounterDemo
```

## 🍺 Synchronization on mutable fields
Expand All @@ -188,7 +188,7 @@ The final count of Listeners is incorrect.
### Quickly run

```bash
mvn compile exec:java -Dexec.mainClass=fucking.concurrency.demo.SynchronizationOnMutableFieldDemo
./mvnw compile exec:java -Dexec.mainClass=fucking.concurrency.demo.SynchronizationOnMutableFieldDemo
```

## 🍺 Deadlock caused by the symmetric locks
Expand All @@ -208,7 +208,7 @@ Task thread deadlocked.
### Quickly run

```bash
mvn compile exec:java -Dexec.mainClass=fucking.concurrency.demo.SymmetricLockDeadlockDemo
./mvnw compile exec:java -Dexec.mainClass=fucking.concurrency.demo.SymmetricLockDeadlockDemo
```

## 🍺 Livelock caused by reentrant locks
Expand All @@ -230,5 +230,5 @@ this is a livelock.
### Quickly run

```bash
mvn compile exec:java -Dexec.mainClass=fucking.concurrency.demo.ReentrantLockLivelockDemo
./mvnw compile exec:java -Dexec.mainClass=fucking.concurrency.demo.ReentrantLockLivelockDemo
```
14 changes: 7 additions & 7 deletions docs/zh-CN/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Demo类[`NoPublishDemo`](../../src/main/java/fucking/concurrency/demo/NoPublishD
### 快速运行

```bash
mvn compile exec:java -Dexec.mainClass=fucking.concurrency.demo.NoPublishDemo
./mvnw compile exec:java -Dexec.mainClass=fucking.concurrency.demo.NoPublishDemo
```

## 🍺 `HashMap`的死循环
Expand All @@ -104,7 +104,7 @@ Demo类[`HashMapHangDemo`](../../src/main/java/fucking/concurrency/demo/HashMapH
### 快速运行

```bash
mvn compile exec:java -Dexec.mainClass=fucking.concurrency.demo.HashMapHangDemo
./mvnw compile exec:java -Dexec.mainClass=fucking.concurrency.demo.HashMapHangDemo
```

## 🍺 组合状态读到无效组合
Expand All @@ -125,7 +125,7 @@ Demo类[`InvalidCombinationStateDemo`](../../src/main/java/fucking/concurrency/d
### 快速运行

```bash
mvn compile exec:java -Dexec.mainClass=fucking.concurrency.demo.InvalidCombinationStateDemo
./mvnw compile exec:java -Dexec.mainClass=fucking.concurrency.demo.InvalidCombinationStateDemo
```

## 🍺 `long`变量读到无效值
Expand All @@ -147,7 +147,7 @@ Demo类[`InvalidLongDemo`](../../src/main/java/fucking/concurrency/demo/InvalidL
### 快速运行

```bash
mvn compile exec:java -Dexec.mainClass=fucking.concurrency.demo.InvalidLongDemo
./mvnw compile exec:java -Dexec.mainClass=fucking.concurrency.demo.InvalidLongDemo
```

## 🍺 无同步的并发计数结果不对
Expand All @@ -165,7 +165,7 @@ Demo类[`WrongCounterDemo`](../../src/main/java/fucking/concurrency/demo/WrongCo
### 快速运行

```bash
mvn compile exec:java -Dexec.mainClass=fucking.concurrency.demo.WrongCounterDemo
./mvnw compile exec:java -Dexec.mainClass=fucking.concurrency.demo.WrongCounterDemo
```

## 🍺 在易变域上的同步
Expand All @@ -186,7 +186,7 @@ Demo类[`SynchronizationOnMutableFieldDemo`](../../src/main/java/fucking/concurr
### 快速运行

```bash
mvn compile exec:java -Dexec.mainClass=fucking.concurrency.demo.SynchronizationOnMutableFieldDemo
./mvnw compile exec:java -Dexec.mainClass=fucking.concurrency.demo.SynchronizationOnMutableFieldDemo
```

## 🍺 对称锁死锁
Expand All @@ -205,7 +205,7 @@ Demo类[`SymmetricLockDeadlockDemo`](../../src/main/java/fucking/concurrency/dem
### 快速运行

```bash
mvn compile exec:java -Dexec.mainClass=fucking.concurrency.demo.SymmetricLockDeadlockDemo
./mvnw compile exec:java -Dexec.mainClass=fucking.concurrency.demo.SymmetricLockDeadlockDemo
```

## 一些并发的问题讨论和资料
Expand Down

0 comments on commit b8be96e

Please sign in to comment.