Skip to content

Commit 0bda2bd

Browse files
committed
iluwatar#107 Thread Pool JavaDoc
1 parent fde7f71 commit 0bda2bd

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

thread-pool/src/main/java/com/iluwatar/threadpool/App.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,19 @@
1313
* more tasks than threads. As soon as a thread completes its task, it will request the next
1414
* task from the queue until all tasks have been completed. The thread can then terminate, or
1515
* sleep until there are new tasks available.
16-
*
16+
* <p>
1717
* In this example we create a list of tasks presenting work to be done. Each task is then
18-
* wrapped into a Worker object that implements Runnable. We create an ExecutorService with
19-
* fixed number of threads (Thread Pool) and use them to execute the Workers.
18+
* wrapped into a {@link Worker} object that implements {@link Runnable}. We create an
19+
* {@link ExecutorService} with fixed number of threads (Thread Pool) and use them to execute
20+
* the {@link Worker}s.
2021
*
2122
*/
2223
public class App {
2324

25+
/**
26+
* Program entry point
27+
* @param args command line args
28+
*/
2429
public static void main( String[] args ) {
2530

2631
System.out.println("Program started");

thread-pool/src/main/java/com/iluwatar/threadpool/Worker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
*
5-
* Worker implements Runnable and thus can be executed by ExecutorService
5+
* Worker implements {@link Runnable} and thus can be executed by {@link ExecutorService}
66
*
77
*/
88
public class Worker implements Runnable {

thread-pool/src/test/java/com/iluwatar/threadpool/AppTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
import com.iluwatar.threadpool.App;
66

7+
/**
8+
* Application test
9+
* @author ilkka
10+
*
11+
*/
712
public class AppTest {
813

914
@Test

0 commit comments

Comments
 (0)