Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming.threads > #1943
| From | aminer <aminer@toto.net> |
|---|---|
| Newsgroups | comp.programming.threads, comp.programming |
| Subject | About ParallelVarFiler... |
| Date | 2013-10-21 15:52 -0700 |
| Organization | albasani.net |
| Message-ID | <l440mb$39q$1@news.albasani.net> (permalink) |
Cross-posted to 2 groups.
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.
Back to comp.programming.threads | Previous | Next | Find similar
About ParallelVarFiler... aminer <aminer@toto.net> - 2013-10-21 15:52 -0700
csiph-web