3a8 Subj : Re: pthread_create and memory To : comp.programming.threads From : David Hopwood Date : Sun Mar 13 2005 09:57 pm David Schwartz wrote: > "David Hopwood" wrote: > >>> And the fact that you don't have a few thousand processors. >> >>That's beside the point. Threads are primarily for expressing concurrent >>program structure. Use of hardware parallelism is a bonus. > > No, tasks are primarily for expressing concurrent program structure. > Threads are for keeping CPUs busy or performing asynchronous I/O. Threads > are how you get the work done, not how describe the work. There doesn't need to be any distinction between threads and tasks. The fact that there is such a distinction in most current systems is an implementation artifact, and one that introduces unnecessary complexity. -- David Hopwood . 0