use of NUMBER_OF_THREADS constant instead of integer literal