Skip to content

Commit faacf07

Browse files
committed
update doc
1 parent 4205f09 commit faacf07

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,42 @@
77
### Notes, SEP 2025
88

99
* SEP 2025: see `jdk-25` branch for Java 25 (work in progress)
10+
* eggs work with Bash, Gradle, or Maven
11+
12+
### Index
13+
14+
* egg_1_max_p_threads
15+
* demo max # of platform threads
16+
* egg_2_max_v_threads
17+
* demo max # of virtual threads
18+
* egg_3_legacy_exec
19+
* illustrates legacy executor/thread pool
20+
* egg_4_virtual_exec
21+
* illustrates virtual threads via ExecutorService
22+
* egg_5_sc_invoke_all
23+
* structured concurrency
24+
* two tasks: `foo` and `bar`
25+
- can be configured to succeed or fail
26+
- when one task is configured to fail, the other is interrupted
27+
* egg_6_sc_invoke_any
28+
* structured concurrency
29+
* task `foo` and task `bar` are in a race: first one to complete is used; the other is interrupted
30+
* egg_7_sc_deadline
31+
* illustrates structured concurrency
32+
* task `foo` and task `bar` take too long and exceed a deadline
33+
- both are interrupted
34+
* egg_8_sc_custom_invoke_some
35+
* this egg illustrates structured concurrency
36+
* create `T` tasks
37+
- use a custom `StructuredTaskScope.Joiner` to define success when `n` tasks complete
38+
- if familiar with `invokeAny()` and `invokeAll()`, this could be considered `invokeSome(n)`
39+
* NOTE: highly contrived and NOT production-ready
40+
* egg_9_sc_fan_in
41+
* simple `client` to send messages over a socket to a `server`
42+
* NOTE: highly contrived and NOT production-ready
43+
* others
44+
* see `jdk-19` branch
45+
* these may not have been moved to `jdk-21` and definitely not `jdk-25`
1046

1147
### Notes, SEP 2023
1248

egg_4_virtual_exec/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ Summary:
44

55
* this egg illustrates virtual threads via ExecutorService
66
- it acts like a thread-pool but it is just a facade for the familiar API
7-
* this egg uses:
8-
- Java 19 (preview) virtual threads
97

108
Build Notes:
119
------------

0 commit comments

Comments
 (0)