Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Rui Maciel Newsgroups: comp.programming.threads Subject: Re: A book for learning threads? Date: Mon, 29 Oct 2012 12:52:54 +0000 Organization: Aioe.org NNTP Server Lines: 35 Message-ID: References: <508dcd4d$0$7581$a8266bb1@newsreader.readnews.com> Reply-To: rui.maciel@gmail.com NNTP-Posting-Host: kOOJJMfATi2f51TTu1lC7Q.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@aioe.org User-Agent: KNode/4.8.5 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.programming.threads:1192 Robert Miles wrote: > I'm updating a program using threads so that it can use checkpoints > instead of often running for a month or more without the ability to > restart anywhere except at the beginning. > > It will later be recompiled for multiple platforms, but for now I am > only using > the Cygwin version of gcc under 64-bit Windows. Without checkpoints, it > will > already compile for all the intended platforms, using other versions of > gcc. > > It uses the Posix threads method of getting threads (pthreads). However, > I've > never used threads before. Also, I've never used Linux, and have done > little > under Unix. > > I've already found that my K&R 2 book does not mention pthreads in the > index. Yes. As far as I know, the last edition of K&R dates back to 1988, and the POSIX threads standard was only published in 1995. > What book would you recommend for learning enough about threads and > pthreads that I can do a reasonable job with this update? I doubt it is the best book written on the subject, but I found O'Reilly's pthreads programming book a good read to get up to speed on pthreads. Hope this helps, Rui Maciel