Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

addword
add a word translation to the translators dictionary.

addword - add a word translation to the translators dictionary.


NAME

addword - add a word translation to the translators dictionary.


DESCRIPTION

This is a little sample program which will add a word to the translators dictionary between English and Polish. It demonstrates how to correctly update the database.


FILES

This uses a BiIndex consisting of two files in the current directory: english-polish and polish-english.


BUGS

Concurrent updates will interfere and one of them is guaranteed to be lost (whichever one finishes first). Furthermore, if the two processes run at exactly the wrong times, the two directions could be inconsistent until the next time the program is run. Still, in the end the database should be consistent and safe.

The program is very inefficient as designed. Updates should be batched together which means we should be able to give more than one word at a time to the program. As it is, we have to read through the whole database for every single word we add...

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy