Subj : Re: returning arguments To : comp.programming.threads From : Joe Seigh Date : Mon Jun 27 2005 10:23 am Huub wrote: > Joe Seigh wrote: >> >> It's not clear why you are using threads for this. You should become >> more familiar with standard thread usage patterns, why they're used, >> and what they >> buy you. >> > I use a thread for this since I have to constantly read from or write to > an interface. In this thread is a while loop, for continuing reading or > writing. Find a book or something that explains the producer/consumer pattern. Assuming you need asynchronicity. Explain why for (;;) { read_iterface1(); write_iterface2(); } won't suffice. -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .