On 23/07/2012 10:38, punit jain wrote:
Another query, might sound stupid, however if my sub-processes are changing different key values for a hash where one subprocess key is different from the other, does it still cound under multiple writer ? Dov we need to worry on multiple writers to same datastructure or same field in a datastructure ? Sorry for the silly question
You must serialize and store every thread's data separately. If there are five provesses then you need five hashes and five saved files on disk. If you can't achieve that then you need a manager process that has sole access to the data structure and accepts requests to access it from all the subsidiary processes. It will also be responsible for stopping all access and storing the data to disk when the time comes. Rob -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/