Subj : Re: pthread_create and memory To : comp.programming.threads From : David Schwartz Date : Mon Mar 14 2005 11:01 am "David Hopwood" wrote in message news:3H2Zd.59491$y25.5941@fe3.news.blueyonder.co.uk... >> 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. I could not disagree more strongly. There definitely does need to be such a distinction. Code quality suffers terribly if you don't encapsulate the state information that goes along with a task along with that task. DS .