Kunal Sharma

Hi friends,

I have some global structure in my application. The data within this is read by some reader threads. There are about 10 new threads created per second. Threads do some processing and die. All threads process based on data read from the global structure.

This global structure is populated from a set of files at application startup, which can be modified at run-time. There is also the option to apply the modified files at run-time. At the time the modified files are read into the application, I need to block access to this global structure from the 'reader' threads. Threads do not modify this structure.

What is the best/efficient way to achieve this task - lock / mutex / wait - and how can this be done Any ideas are welcome.

Thanks n Regards,

Kunal