On Thu, 14 Mar 2002, Nadav Har'El wrote:

> On Thu, Mar 14, 2002, Isaac Aaron wrote about "RE: pthreads question":
> > The thing is, I Read the F Manual (over and over, even considered trying
> > mit-pthreads instead), did didn't think that I WANT to detach the thread?
> > (Why detach? I kind of like it... Better keep it).
>
> That's where books are better than manuals - given their length, they can
> also give examples and explain the ideas behind why certain things were
> done the way they were done, and what they are good for.
>

I believe, but am not sure, that there are good tutorials and lectures
online about it too. STFW.

> The book I'd recommend is David R. Butenhof's "Programming with Posix Threads"
> (see e.g., http://www.amazon.com/exec/obidos/ASIN/0201633922/thealmostcomplet )
> If I remember correctly, Butenhof was one of the people working on the
> Posix threads standard, and talks a lot about the motivations of how and why
> to do things (it talks only on C, of course - if you're looking for OOP
> abstractions of threads look elsewhere; I just wrote my own).

You can find some useful abstractions for them here:

http://vipe.technion.ac.il/~shlomif/abstraction/ (under System-Services
Abstractions)

If there's anything missing let me know. And Nadav - you should know
better than to invent your own wheel. ;-)

> This is the book I learned Posix threads from.
>

I learned POSIX threads from online and hard-disk resources, and from my
"Structure of OS" course. The pthreads API is not very hard or complex,
but of course preventing dead-locks, starvation and other multi-tasking
mishaps is something that requires a lot of though.

Regards,

        Shlomi Fish

>
>
> --
> Nadav Har'El                        |      Thursday, Mar 14 2002, 2 Nisan 5762
> [EMAIL PROTECTED]             |-----------------------------------------
> Phone: +972-53-245868, ICQ 13349191 |Why aren't fishmongers generous? Their
> http://nadav.harel.org.il           |business makes them selfish.
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
>



----------------------------------------------------------------------
Shlomi Fish        [EMAIL PROTECTED]
Home Page:         http://t2.technion.ac.il/~shlomif/
Home E-mail:       [EMAIL PROTECTED]

"Let's suppose you have a table with 2^n cups..."
"Wait a second - is n a natural number?"


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to