Reputation: 3699
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
Reputation: 1871
Following site provides a pthread example. It simply creates two threads and joins them
Upvotes: 2