Skip to content

Commit 7bbb213

Browse files
Move 1.12 threading news to threading section. Add reminder about threadid (#59251)
1 parent 3812880 commit 7bbb213

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

HISTORY.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@ New language features
3333
Language changes
3434
----------------
3535

36-
* Julia now defaults to 1 "interactive" thread, in addition to the 1 default "worker" thread. i.e. `-t1,1`.
37-
This means in default configuration the main task and repl (when in interactive mode), which both run on
38-
thread 1, now run within the `interactive` threadpool. The libuv IO loop also runs on thread 1,
39-
helping efficient utilization of the worker threadpool used by `Threads.@spawn`. Asking for specifically 1 thread
40-
(`-t1`/`JULIA_NUM_THREADS=1`) or passing `0` will disable the interactive thread i.e. `-t1,0` or `JULIA_NUM_THREADS=1,0`
41-
, or `-tauto,0` etc. Asking for more than 1 thread will enable the interactive thread so
42-
`-t2` will set the equivalent of `-t2,1` ([#57087]).
4336
* When a method is replaced with an exactly equivalent one, the old method is not deleted. Instead, the
4437
new method takes priority and becomes more specific than the old method. Thus if the new method is deleted
4538
later, the old method will resume operating. This can be useful in mocking frameworks (as in SparseArrays,
@@ -87,6 +80,14 @@ Command-line option changes
8780
Multi-threading changes
8881
-----------------------
8982

83+
* Julia now defaults to 1 "interactive" thread, in addition to the 1 default "worker" thread. i.e. `-t1,1`.
84+
This means in default configuration the main task and repl (when in interactive mode), which both run on
85+
thread 1, now run within the `interactive` threadpool. The libuv IO loop also runs on thread 1,
86+
helping efficient utilization of the worker threadpool used by `Threads.@spawn`. Asking for specifically 1 thread
87+
(`-t1`/`JULIA_NUM_THREADS=1`) or `0` interactive threads will disable the interactive thread i.e. `-t1,0` or `JULIA_NUM_THREADS=1,0`
88+
, or `-tauto,0` etc. Asking for more than 1 thread will enable the interactive thread so
89+
`-t2` will set the equivalent of `-t2,1`. As a reminder, buffers
90+
[should not be managed based on `threadid()`](https://docs.julialang.org/en/v1/manual/multi-threading/#Using-@threads-without-data-races) ([#57087]).
9091
* New types are defined to handle the pattern of code that must run once per process, called
9192
a `OncePerProcess{T}` type, which allows defining a function that should be run exactly once
9293
the first time it is called, and then always return the same result value of type `T`

0 commit comments

Comments
 (0)