This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Multithread program hep  RSS feed

 
Sireesh Ganagam
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello All,


I need help on writing multithread program to process files, i will have set of file names appended with group number and sequence. my requirement is each thread should dedicate to process one group set of files in sequence order.

Ex:

File format : GroupNumber_Sequence_File.tsv

Group 1 with sequence 1,2,3 should process by thread1
1_1_FIlE.tsv
1_2_FILE.tsv
1_3_File.tsv


Group 2 with sequence 1,2,3 should process by thread2
2_1_FIlE.tsv
2_2_FILE.tsv
2_3_File.tsv


Group 3 with sequence 1,2,3 should process by thread3
3_1_FIlE.tsv
3_2_FILE.tsv
3_3_File.tsv
 
Sireesh Ganagam
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was trying to use below ant.xml built in feature to process in multithread but this is assigning each file to different thread , in my case one group of files should pick up by one thread only



Result :
1_1_FIlE.txt --- thread 1
1_2_FILE.txt --- thread 2
1_3_File.txt --- thread 3

expected
1_1_FIlE.txt --- thread 1
1_2_FILE.txt --- thread 1
1_3_File.txt --- thread 1
 
Sangel Kapoor
Ranch Hand
Posts: 162
1
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!