From: David Vallner Date: 2006-02-22T09:24:48+09:00 Subject: Re: need for threads Dňa Utorok 21 Február 2006 19:10 Daniel Nugent napísal: > Uh, yeah, that's pretty much why not all code is threaded. > > On the other hand, in programs above a certain size, or ones that have > graphical user interface, there usually is something else that you can > do while you're waiting on that resource. > This is pretty much one of the few good reasons to use threads on a single-core processor - to keep an interactive user interface responsive. And to give people that can't wrap their heads around parallel processing headaches making them code Dining Philosophers *mutter* They also make life simpler in some scenarios - it's definately easier to make a multithreaded application with parallel asynchronous input (think packet sniffing on multiple network interfaces) by hogging each with a thread you couldn't care less about if it blocks, than using standard asynchronous IO, which isn't even available for all input sources. David Vallner