Post(Que) mesages between threads
I have two threads, the first thread reads line by line data from the .txt file does some filtering and gives the data to the second thread to show on the UI. There will be thousands of records in the file. I want to simulate a condition where the first thread filters line by line data and posts each filtered line to the second thread to display. The main aim should be there should not be loss of data between the two threads, so I want to use message posting concept where all the filtered lines will be in que and can be accessed by the second thread. My goal is to speed up the display process. Can any one give me some idea to do this.