rmascarenhas/lpi — pull request #22 by rmascarenhas (2014-10-31 16:25:38+00:00)
Title: #30 - Threads: Thread Synchronization

I've ended up getting excited with the thread-safe binary tree exercise and implemented a console for the data structure, and, since it was fun, I also added a function to export the current tree state in the [DOT](http://en.wikipedia.org/wiki/DOT_(graph_description_language)) language.

If you have a tool such as graphviz, you can actually see the tree state as an image, which kept me from drawing trees when I was debugging the removal operation. :-)

Just for the fun, I created the graph representation after adding [this list of the most popular female names](http://names.mongabay.com/female_names.htm). Attaching it heresince the final result is kinda nice (much nicer than the code that generates it :cold_sweat:).

![names](https://cloud.githubusercontent.com/assets/613784/4864139/0c2e8a7a-611a-11e4-95ac-9a72976dbcf4.png)