Thread: Threads

  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    29

    Threads

    Can anyone recommend a realy good source for learning about thread programming, p_thread etc...? I don't even know the basics...

    Thanks
    Z

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    I'd say you need to get real comfortable with C first before you start with threads.

    Threads introduce a whole new layer of problems to be solved which single threaded programs do not have. And they're not the magic cure for all your problems as some would make believe.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659

  4. #4
    Registered User
    Join Date
    Dec 2005
    Posts
    29
    Quote Originally Posted by Salem
    I'd say you need to get real comfortable with C first before you start with threads.

    Threads introduce a whole new layer of problems to be solved which single threaded programs do not have. And they're not the magic cure for all your problems as some would make believe.
    It's funny you should say that. For one of my assignments I have to use threads...i've not been taught C (because I do Computer Engineering, and C was taught in a Computer Science module that I don't do) , so am having to learn it on my own, and learn to do threads at the same time!!!

    Gotta do what I gotta do

  5. #5
    Registered User
    Join Date
    Jun 2004
    Posts
    277
    Quote Originally Posted by zonf
    It's funny you should say that. For one of my assignments I have to use threads...i've not been taught C (because I do Computer Engineering, and C was taught in a Computer Science module that I don't do) , so am having to learn it on my own, and learn to do threads at the same time!!!

    Gotta do what I gotta do
    Get a copy of the C Programming Language by Kernigham and Ritchie and focus on the pointers and arrays chapter it is a reasonably small book like 200 pages Im sure you can do it. I got some threards material too on my teachers page http://www.inf.ufrgs.br/~nmaillard/SisOp/pthread.tar I think it is in portuguese not sure, maybe some codes are in french but you can skim throught it and check the general idea.

  6. #6
    Registered User
    Join Date
    Dec 2005
    Posts
    29
    Thanks, I will definately look into that book. Although im afriad your code is in portuguese.......maybe I should learn that aswell :P...really show my lecturers what I can do!

  7. #7
    Registered User
    Join Date
    Aug 2002
    Location
    Hermosa Beach, CA
    Posts
    446
    I googled and found this reasonable looking tutorial. As a bonus, it is in English.

    http://www.cs.nmsu.edu/~jcook/Tools/.../pthreads.html
    The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.

  8. #8
    Registered User
    Join Date
    Dec 2005
    Posts
    29
    Thanks for the links, I have looked myself, I just don't know what is good and what isn't...simply because I don't understand threads, YET!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 10-17-2008, 11:28 AM
  2. Yet another n00b in pthreads ...
    By dimis in forum C++ Programming
    Replies: 14
    Last Post: 04-07-2008, 12:43 AM
  3. Classes and Threads
    By Halloko in forum Windows Programming
    Replies: 9
    Last Post: 10-23-2005, 05:27 AM
  4. problem with win32 threads
    By pdmarshall in forum C++ Programming
    Replies: 6
    Last Post: 07-29-2004, 02:39 PM
  5. Block and wake up certain threads
    By Spark in forum C Programming
    Replies: 9
    Last Post: 06-01-2002, 03:39 AM