MCPcopy Create free account
hub / github.com/BWbwchen/MapReduce / singleMachineJob

Function singleMachineJob

singleMachine.go:17–33  ·  view source on GitHub ↗
(input []string, nWorker int, nReducer int, plugin string, storeInRAM bool)

Source from the content-addressed store, hash-verified

15}
16
17func singleMachineJob(input []string, nWorker int, nReducer int, plugin string, storeInRAM bool) {
18 var wg sync.WaitGroup
19
20 wg.Add(1)
21 go func() {
22 startMaster(input, nWorker, nReducer)
23 wg.Done()
24 }()
25
26 wg.Add(1)
27 go func() {
28 startSingleMachineWorker(plugin, nWorker, nReducer, storeInRAM)
29 wg.Done()
30 }()
31
32 wg.Wait()
33}

Callers 1

StartSingleMachineJobFunction · 0.85

Calls 2

startMasterFunction · 0.85
startSingleMachineWorkerFunction · 0.85

Tested by

no test coverage detected