MultiThreadedDemo: remove hardcoded numThreads