So I just ran the example from this website and it says the the output should alternate like so:
threadFunc says: processing... main() is running... threadFunc says: processing... main() is running...
However on my machine it produces this:
threadFunc says: processing... threadFunc says: processing... main() is running... main() is running...
Is it because I have a single-core processor that isn't multithreaded?
Note: I'm also getting this warning when compiling: implicit declaration of function ‘usleep’
I'm compiling with gcc like so: gcc new.c -o new -lpthread