i need to write a single thread program using Posix thread, to compare with multi thread program.
so if i want to write a Pthread program running a single(One) thread, do i :
- use "create thread" to create one thread , Or
- dont create any thread and just depend on the main thread program, as was told that the main program has already one thread by default, thanks
so if i want to write a Pthread program running a single(One) thread, do i :
- use "create thread" to create one thread , Or
- dont create any thread and just depend on the main thread program, as was told that the main program has already one thread by default, thanks