I need to write a code using c# 3.5 where 2 threads simultaneously run on 100s of folders. When first thread completes processing a folder, it inputs folder name to 2nd thread so that it executes its logic on 1st folder. But one issue I face is that 2nd thread should run like a queue due to a restriction on database.
thread1.start() for folder 1 thread2.start(folder1): Need to create a queue for thread2 so that only one folder is in process by thread2.
I got stuck due not many options are available in 3.5 framework. Thank you for help in advance.