Skip to content

Commit 0f57319

Browse files
authored
JAVA-12045 : move java concurrency ebook content code to common module (eugenp#12559)
* JAVA-12045 : move java concurrency ebook content code to common module * JAVA-12045: addressed the review comments .. renamed package names and placed core-java-concurrency-simple module in pom.xml * JAVA-12045: removed duplicate module after renaming java-simple-module to core-java-simple-module
1 parent 8617645 commit 0f57319

36 files changed

Lines changed: 45 additions & 8 deletions

File tree

‎core-java-modules/core-java-concurrency-advanced-2/README.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ This module contains articles about advanced topics about multithreading with co
1111
- [Java CyclicBarrier vs CountDownLatch](https://www.baeldung.com/java-cyclicbarrier-countdownlatch)
1212
- [Guide to the Fork/Join Framework in Java](https://www.baeldung.com/java-fork-join)
1313
- [Guide to ThreadLocalRandom in Java](https://www.baeldung.com/java-thread-local-random)
14-
- [The Thread.join() Method in Java](https://www.baeldung.com/java-thread-join)
1514
- [Passing Parameters to Java Threads](https://www.baeldung.com/java-thread-parameters)
1615

1716
[[<-- previous]](/core-java-modules/core-java-concurrency-advanced)[[next -->]](/core-java-modules/core-java-concurrency-advanced-3)

‎core-java-modules/core-java-concurrency-advanced/README.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ This module contains articles about advanced topics about multithreading with co
1212
- [Guide to the Java Phaser](https://www.baeldung.com/java-phaser)
1313
- [An Introduction to Atomic Variables in Java](https://www.baeldung.com/java-atomic-variables)
1414
- [CyclicBarrier in Java](https://www.baeldung.com/java-cyclic-barrier)
15-
- [Guide to the Volatile Keyword in Java](https://www.baeldung.com/java-volatile)
1615
- More Articles: [[next -->]](/core-java-modules/core-java-concurrency-advanced-2)

‎core-java-modules/core-java-concurrency-basic-2/README.md‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ This module contains articles about basic Java concurrency
55
### Relevant Articles:
66

77
- [How to Delay Code Execution in Java](https://www.baeldung.com/java-delay-code-execution)
8-
- [wait and notify() Methods in Java](https://www.baeldung.com/java-wait-notify)
98
- [Difference Between Wait and Sleep in Java](https://www.baeldung.com/java-wait-and-sleep)
10-
- [Guide to the Synchronized Keyword in Java](https://www.baeldung.com/java-synchronized)
11-
- [Life Cycle of a Thread in Java](https://www.baeldung.com/java-thread-lifecycle)
129
- [Guide to AtomicMarkableReference](https://www.baeldung.com/java-atomicmarkablereference)
1310
- [Why are Local Variables Thread-Safe in Java](https://www.baeldung.com/java-local-variables-thread-safe)
1411
- [How to Stop Execution After a Certain Time in Java](https://www.baeldung.com/java-stop-execution-after-certain-time)

‎core-java-modules/core-java-concurrency-basic/README.md‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
This module contains articles about basic Java concurrency
44

55
### Relevant Articles:
6-
- [Guide To CompletableFuture](https://www.baeldung.com/java-completablefuture)
7-
- [A Guide to the Java ExecutorService](https://www.baeldung.com/java-executor-service-tutorial)
86
- [Guide to java.util.concurrent.Future](https://www.baeldung.com/java-future)
97
- [Overview of the java.util.concurrent](https://www.baeldung.com/java-util-concurrent)
108
- [Implementing a Runnable vs Extending a Thread](https://www.baeldung.com/java-runnable-vs-extending-thread)
119
- [How to Kill a Java Thread](https://www.baeldung.com/java-thread-stop)
1210
- [ExecutorService – Waiting for Threads to Finish](https://www.baeldung.com/java-executor-wait-for-threads)
1311
- [Runnable vs. Callable in Java](https://www.baeldung.com/java-runnable-callable)
1412
- [What is Thread-Safety and How to Achieve it?](https://www.baeldung.com/java-thread-safety)
15-
- [How to Start a Thread in Java](https://www.baeldung.com/java-start-thread)
1613
- [[Next -->]](/core-java-modules/core-java-concurrency-basic-2)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
### Mockito Articles that are also part of the e-book
2+
3+
This module contains articles about Java Concurrency that are also part of an Ebook.
4+
5+
## Relevant articles:
6+
7+
- [Life Cycle of a Thread in Java](https://www.baeldung.com/java-thread-lifecycle)
8+
- [How to Start a Thread in Java](https://www.baeldung.com/java-start-thread)
9+
- [Thread's wait and notify() Methods in Java](https://www.baeldung.com/java-wait-notify)
10+
- [The Thread.join() Method in Java](https://www.baeldung.com/java-thread-join)
11+
- [Guide to the Synchronized Keyword in Java](https://www.baeldung.com/java-synchronized)
12+
- [Guide to the Volatile Keyword in Java](https://www.baeldung.com/java-volatile)
13+
- [A Guide to the Java ExecutorService](https://www.baeldung.com/java-executor-service-tutorial)
14+
- [Guide To CompletableFuture](https://www.baeldung.com/java-completablefuture)
15+
16+
### NOTE:
17+
18+
Since this is a module tied to an e-book, it should **not** be moved or used to store the code for any further article.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<artifactId>java-concurrency-simple</artifactId>
6+
<version>0.1.0-SNAPSHOT</version>
7+
<name>java-concurrency-simple</name>
8+
<packaging>jar</packaging>
9+
10+
<parent>
11+
<groupId>com.baeldung.core-java-modules</groupId>
12+
<artifactId>core-java-modules</artifactId>
13+
<version>0.0.1-SNAPSHOT</version>
14+
</parent>
15+
16+
<build>
17+
<finalName>java-concurrency-simple</finalName>
18+
<resources>
19+
<resource>
20+
<directory>src/main/resources</directory>
21+
<filtering>true</filtering>
22+
</resource>
23+
</resources>
24+
</build>
25+
26+
</project>

core-java-modules/core-java-concurrency-basic/src/main/java/com/baeldung/concurrent/Scheduledexecutorservice/ScheduledExecutorServiceDemo.java renamed to core-java-modules/core-java-concurrency-simple/src/main/java/com/baeldung/concurrent/Scheduledexecutorservice/ScheduledExecutorServiceDemo.java

File renamed without changes.

core-java-modules/core-java-concurrency-advanced/src/main/java/com/baeldung/concurrent/daemon/MultipleThreadsExample.java renamed to core-java-modules/core-java-concurrency-simple/src/main/java/com/baeldung/concurrent/daemon/MultipleThreadsExample.java

File renamed without changes.

core-java-modules/core-java-concurrency-advanced/src/main/java/com/baeldung/concurrent/daemon/NewThread.java renamed to core-java-modules/core-java-concurrency-simple/src/main/java/com/baeldung/concurrent/daemon/NewThread.java

File renamed without changes.

core-java-modules/core-java-concurrency-advanced/src/main/java/com/baeldung/concurrent/daemon/SingleThreadExample.java renamed to core-java-modules/core-java-concurrency-simple/src/main/java/com/baeldung/concurrent/daemon/SingleThreadExample.java

File renamed without changes.

0 commit comments

Comments
 (0)