Re: shared object between threads

2014-07-15 Thread Frank Austin Nothaft
Hi Wanda, What exactly is the use case for this? Nominally, you wouldn’t want to do that sort of access, as a single datum can’t be shared across machines when running distributed. Instead, you might want to use an accumulator to manage the aggregation of data in a distributed form. Regards,

shared object between threads

2014-07-15 Thread Wanda Hawk
How can I declare in spark a shared object by all the threads that does not block execution by locking the entire array (threads are supposed to access different lines from a 2 dimensional array) ? For example, I would like to declare a 2 dimensional array. Each thread should write on its corre