Hello all,
I have come to an interresting subject, i have implemented
ParallelVarFiler, it's a parallel hashtable that can be saved automaticly or manually to hardisk files.. so as you have
noticed you can save manually the parallel hashtable to the harddisk
by using the SaveToStream() or SaveToString() or SaveToFile() methods,
but to call those methods it's mandatory that you pass a file name
to the constructor, if you don't pass a file name to the constructor that means you are using an in-memory parallel hashtable, so if you
are using an in-memory parallel hashtable you have to stop your threads before calling SaveToStream() or SaveToString() or SaveToFile() methods, and restart after that your threads, but
if you are saving automaticly your parallel hashtable to the hardisk
by passing a filename to the constructor, then you can safetly call the SaveToStream() or SaveToString() or SaveToFile() methods even if
you are using mutiple threads.
Hope you have understood the ideas behind my ParallelVarFiler.
You can download my ParallelVarFiler from:
http://pages.videotron.com/aminer/Thank you,
Amine Moulay Ramdane.