Is the Hunspell spelling library thread-safe?
Asked
Active
Viewed 1,080 times
1 Answers
8
The answer is NO, A simple multi-threaded test application revealed that Hunspell uses per-instance resources for the spelling process, so only one thread can use it at any time - use locks/work queue/or instanciate a per-thread Hunspell instance.

Amit Bens
- 1,315
- 3
- 12
- 20
-
2You might the following article useful: [Spell Check, Hyphenation, and Thesaurus for .NET with C# and VB Samples - Part 2: Multi Threading](http://www.codeproject.com/KB/recipes/spell-check-asp-net-web.aspx). – Cody Gray - on strike Jan 09 '11 at 14:53
-
1And use the latest NHunspell versions from sourceforge, because there are som multithreading bugs in the older versions. – Thomas Maierhofer Aug 20 '13 at 07:40
-
The current comments for this answer refer to NHunspell, where as the question refers to Hunspell. The different HunSpell implementations have different owners and vary in their implementation. – Co7e Jan 15 '15 at 16:36