阅读背景:

使用pthreads计算列表中的数字.. C.

来源:互联网 

I am having trouble getting using pthreads to count the number of 3's in a list. Using a serial version of my code works fine but trying to use pthread_create is giving me trouble. Currently the problem is that count3s_thread_2(int id) is not giving me the same value as the serial version. What do I need to change? P.S., sorry for the mess. I am new to programming in C.I am having trouble getting using pthreads to c




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: