tokens: The condition variable gives you the way to put them to sleep while they are waiting , simultaneously releasing the mutex and doing so in a way that avoids race conditions where you miss wake ups .
ner_tags: O B-Class I-Class O O O O O O O O O O O O O O O O O B-Class O O O O O O O O O O O O O O O O