Skip to content

Commit ba55162

Browse files
committed
docs: clarified that compute is called through invokeAll
1 parent fbb7525 commit ba55162

File tree

1 file changed

+1
-1
lines changed
  • exercises/practice/parallel-letter-frequency/.approaches/fork-join

1 file changed

+1
-1
lines changed

exercises/practice/parallel-letter-frequency/.approaches/fork-join/content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The core of [`ForkJoinPool`][ForkJoinPool] is the Fork/Join mechanism, which div
7575

7676
`THRESHOLD` is the criterion for task division.
7777
If the range of texts exceeds the `THRESHOLD`, the task is divided into two subtasks, and [`invokeAll(leftTask, rightTask)`][invokeAll] is called to execute both tasks in parallel.
78-
Each subtask in LetterCountTask will continue calling compute() to divide itself further until the range is smaller than or equal to the `THRESHOLD`.
78+
Each subtask in `LetterCountTask` will continue calling `compute()` (via `invokeAll(leftTask, rightTask)`) to divide itself further until the range is smaller than or equal to the `THRESHOLD`.
7979
For tasks that are within the `THRESHOLD`, letter frequency is calculated.
8080

8181
The [`Character.isAlphabetic`][isAlphabetic] method identifies all characters classified as alphabetic in Unicode, covering characters from various languages like English, Korean, Japanese, Chinese, etc., returning `true`.

0 commit comments

Comments
 (0)