Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #3957 > unrolled thread

About ParallelVarFiler...

Started byaminer <aminer@toto.net>
First post2013-10-21 15:52 -0700
Last post2013-10-21 15:52 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.programming


Contents

  About ParallelVarFiler... aminer <aminer@toto.net> - 2013-10-21 15:52 -0700

#3957 — About ParallelVarFiler...

Fromaminer <aminer@toto.net>
Date2013-10-21 15:52 -0700
SubjectAbout ParallelVarFiler...
Message-ID<l440mb$39q$1@news.albasani.net>
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 when you are running multiple threads, 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.




[toc] | [standalone]


Back to top | Article view | comp.programming


csiph-web