mining
mining

Reputation: 3699

read file and processing the data with pthread

I have some .txt data files, I have processed them serially. I want to use 'pthread' to parallel process them. Then could I send the thread with data file name, and process the data within the thread, and wait all threads finished, merge the all results? Could you give me some advice about that, please? Thanks?

Upvotes: 1

Views: 1691

Answers (1)

phoad
phoad

Reputation: 1871

Following site provides a pthread example. It simply creates two threads and joins them

Upvotes: 2

Related Questions