Julia 1.8.0 DEV Documentation
make_jobs(n)); # feed the jobs channel with "n" jobs julia> for i in 1:4 # start 4 tasks to process requests in parallel errormonitor(@async do_work()) end julia> @elapsed while n > 0 # print out results 23.4 Tasks and events Most task switches occur as a result of waiting for events such as I/O requests, and are performed by a scheduler included in Julia Base. The scheduler maintains a queue of runnable the jobs channel with "n" jobs julia> for p in workers() # start tasks on the workers to process requests in parallel remote_do(do_work, p, jobs, results) end julia> @elapsed while n > 0 # print out0 码力 | 1463 页 | 5.01 MB | 1 年前3Julia 1.8.0 Documentation
make_jobs(n)); # feed the jobs channel with "n" jobs julia> for i in 1:4 # start 4 tasks to process requests in parallel errormonitor(@async do_work()) end julia> @elapsed while n > 0 # print out results 23.4 Tasks and events Most task switches occur as a result of waiting for events such as I/O requests, and are performed by a scheduler included in Julia Base. The scheduler maintains a queue of runnable the jobs channel with "n" jobs julia> for p in workers() # start tasks on the workers to process requests in parallel remote_do(do_work, p, jobs, results) end julia> @elapsed while n > 0 # print out0 码力 | 1595 页 | 5.35 MB | 1 年前3Julia 1.8.1 Documentation
make_jobs(n)); # feed the jobs channel with "n" jobs julia> for i in 1:4 # start 4 tasks to process requests in parallel errormonitor(@async do_work()) end julia> @elapsed while n > 0 # print out results 23.4 Tasks and events Most task switches occur as a result of waiting for events such as I/O requests, and are performed by a scheduler included in Julia Base. The scheduler maintains a queue of runnable the jobs channel with "n" jobs julia> for p in workers() # start tasks on the workers to process requests in parallel remote_do(do_work, p, jobs, results) end julia> @elapsed while n > 0 # print out0 码力 | 1563 页 | 5.03 MB | 1 年前3Julia 1.8.2 Documentation
make_jobs(n)); # feed the jobs channel with "n" jobs julia> for i in 1:4 # start 4 tasks to process requests in parallel errormonitor(@async do_work()) end julia> @elapsed while n > 0 # print out results 23.4 Tasks and events Most task switches occur as a result of waiting for events such as I/O requests, and are performed by a scheduler included in Julia Base. The scheduler maintains a queue of runnable the jobs channel with "n" jobs julia> for p in workers() # start tasks on the workers to process requests in parallel remote_do(do_work, p, jobs, results) end julia> @elapsed while n > 0 # print out0 码力 | 1563 页 | 5.04 MB | 1 年前3julia 1.10.10
make_jobs(n)); # feed the jobs channel with "n" jobs julia> for i in 1:4 # start 4 tasks to process requests in parallel errormonitor(@async do_work()) end julia> @elapsed while n > 0 # print out results 23.4 Tasks and events Most task switches occur as a result of waiting for events such as I/O requests, and are performed by a scheduler included in Julia Base. The scheduler maintains a queue of runnable the jobs channel with "n" jobs julia> for p in workers() # start tasks on the workers to process requests in parallel remote_do(do_work, p, jobs, results) end julia> @elapsed while n > 0 # print out0 码力 | 1692 页 | 6.34 MB | 3 月前3Julia 1.10.9
make_jobs(n)); # feed the jobs channel with "n" jobs julia> for i in 1:4 # start 4 tasks to process requests in parallel errormonitor(@async do_work()) end julia> @elapsed while n > 0 # print out results 23.4 Tasks and events Most task switches occur as a result of waiting for events such as I/O requests, and are performed by a scheduler included in Julia Base. The scheduler maintains a queue of runnable the jobs channel with "n" jobs julia> for p in workers() # start tasks on the workers to process requests in parallel remote_do(do_work, p, jobs, results) end julia> @elapsed while n > 0 # print out0 码力 | 1692 页 | 6.34 MB | 3 月前3julia 1.13.0 DEV
make_jobs(n)); # feed the jobs channel with "n" jobs julia> for i in 1:4 # start 4 tasks to process requests in parallel errormonitor(Threads.@spawn do_work()) end julia> @elapsed while n > 0 # print out 24.4 Tasks and events Most task switches occur as a result of waiting for events such as I/O requests, and are performed by a scheduler included in Julia Base. The scheduler maintains a queue of runnable the jobs channel with "n" jobs julia> for p in workers() # start tasks on the workers to process requests in parallelCHAPTER 26. MULTI-PROCESSING AND DISTRIBUTED COMPUTING 344 remote_do(do_work, p, jobs0 码力 | 2058 页 | 7.45 MB | 3 月前3Julia 1.12.0 RC1
make_jobs(n)); # feed the jobs channel with "n" jobs julia> for i in 1:4 # start 4 tasks to process requests in parallel errormonitor(Threads.@spawn do_work()) end julia> @elapsed while n > 0 # print out 24.4 Tasks and events Most task switches occur as a result of waiting for events such as I/O requests, and are performed by a scheduler included in Julia Base. The scheduler maintains a queue of runnable the jobs channel with "n" jobs julia> for p in workers() # start tasks on the workers to process requests in parallelCHAPTER 26. MULTI-PROCESSING AND DISTRIBUTED COMPUTING 345 remote_do(do_work, p, jobs0 码力 | 2057 页 | 7.44 MB | 3 月前3Julia 1.12.0 Beta4
make_jobs(n)); # feed the jobs channel with "n" jobs julia> for i in 1:4 # start 4 tasks to process requests in parallel errormonitor(Threads.@spawn do_work()) end julia> @elapsed while n > 0 # print out 24.4 Tasks and events Most task switches occur as a result of waiting for events such as I/O requests, and are performed by a scheduler included in Julia Base. The scheduler maintains a queue of runnable the jobs channel with "n" jobs julia> for p in workers() # start tasks on the workers to process requests in parallelCHAPTER 26. MULTI-PROCESSING AND DISTRIBUTED COMPUTING 344 remote_do(do_work, p, jobs0 码力 | 2057 页 | 7.44 MB | 3 月前3Julia 1.12.0 Beta3
make_jobs(n)); # feed the jobs channel with "n" jobs julia> for i in 1:4 # start 4 tasks to process requests in parallel errormonitor(Threads.@spawn do_work()) end julia> @elapsed while n > 0 # print out 24.4 Tasks and events Most task switches occur as a result of waiting for events such as I/O requests, and are performed by a scheduler included in Julia Base. The scheduler maintains a queue of runnable the jobs channel with "n" jobs julia> for p in workers() # start tasks on the workers to process requests in parallelCHAPTER 26. MULTI-PROCESSING AND DISTRIBUTED COMPUTING 344 remote_do(do_work, p, jobs0 码力 | 2057 页 | 7.44 MB | 3 月前3
共 87 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9