getprime can now run without creating any additional threads. This helps testing pthreads and measuring performance of directly searching primes from main thread versus creating one thread.
Also don't misuse ASSERT() for checking command-line input coming from user.
Summary
getprime can now run without creating any additional threads. This helps testing pthreads and measuring performance of directly searching primes from main thread versus creating one thread.
Also don't misuse ASSERT() for checking command-line input coming from user.
Impact
Testing
Tested with ox64:nsh board