How to create n threads for manipulating m files ('n' is very less compared to file 'm') . I have written file manipulation program in void run and reading in main prog. declaring file name in global variable buffer

I should use file locking .

Currently i have written program which creates n threads for n files.. i need to alter now.

Please help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.