Discover Packages
e.coding.net/cloudbase-100023652792/pathip/gorse
base
parallel
package
Version:
v0.4.6
Opens a new window with list of versions in this module.
Published: Jun 16, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func BatchParallel(nJobs, nWorkers, batchSize int , worker func(workerId, beginJobId, endJobId int ) error ) error
BatchParallel run parallel jobs in batches to reduce the cost of context switch.
func Parallel(nJobs, nWorkers int , worker func(workerId, jobId int ) error ) error
Parallel schedules and runs tasks in parallel. nTask is the number of tasks. nJob is
the number of executors. worker is the executed function which passed a range of task
Names (begin, end).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.