Skip to content

Commit 6923658

Browse files
authored
Add a note about threaded for-blocks. (#2232)
[skip tests]
1 parent a68f400 commit 6923658

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/src/usage/multitasking.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ end
140140

141141
By using the `Threads.@spawn` macro, the tasks will be scheduled to be run on different CPU
142142
threads. This can be useful when you are calling a lot of operations that "block" in CUDA,
143-
e.g., memory copies to or from unpinned memory. Generally though, operations that
143+
e.g., memory copies to or from unpinned memory. The same result will occur when using a
144+
`Threads.@threads for ... end` block. Generally, though, operations that
144145
synchronize GPU execution (including the call to `synchronize` itself) are implemented in a
145146
way that they yield back to the Julia scheduler, to enable concurrent execution without
146147
requiring the use of different CPU threads.

0 commit comments

Comments
 (0)