Hi all, Questions about Thread. Does anybody can help me regarding Producer/Consumer using SwingWorker ? Here is the background. I'm developing a Java program, Swing based, which : a). check every, say, 30 sec if a file within a directory exists b). if exists, the process it ( this could be time-consuming task ). c). run a query every, say, 60 sec ( this could be time-consuming task ). d). process the result set ( this could be time-consuming task ). Given that scenario, I think the concept of Producer/Consumer fit. The Producers are a) and c), and the Consumers are b) and d). My problem is how implement the SwingWorker for Producer/Consumer ? Or is there any other approach ( with a sample code ) ? Any comments would be appreciated. Thanks, Benoit.