All Questions
Tagged with lightweight-processes pthreads
2 questions
2
votes
1
answer
74
views
Can't multithread but works with a for loop or single thread
I'm trying to get multiple threads to perform parallel calculations on a 2D array.
The user specifies how many threads they want so on a 25*25 2d array if the user wants 5 threads then each thread ...
0
votes
1
answer
238
views
Why two threads in NPTL have different pid in Ubuntu12.04
I tested some code in Ubuntu 12.04 LTS server x64(3.2 kernel), which I think is using NPTL.
when I run
$ getconf GNU_LIBPTHREAD_VERSION
I get
NPTL 2.15
The following is the test code. I compiled ...