Added docs for thread-safety.

Also added a parallel benchmark.