假设我的电脑上有8个核。我已经在RAM中加载了一个2Go数据集,我希望这些工作人员中的每一个只从该数据集中读取我所做的工作:
worker.function(rowstoread, dataset)
{
#read a couple of rows from the dataset (those rows are sent as argument to the worker function)
#process these rows
#return results
}
我想知道为什么这会在每个工作人员级别上产生数据集的副本,因为我的员工只是从数据集中读取数据集。它们没有修改数据集