Can anyone recommend a realy good source for learning about thread programming, p_thread etc...? I don't even know the basics...
Thanks
Z
Can anyone recommend a realy good source for learning about thread programming, p_thread etc...? I don't even know the basics...
Thanks
Z
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.
Oh, and just in case you think I'm being unduly mean to the newbies, read.
http://www.ludusdesign.com/~pp/threads/
http://threading.2038bug.com/threads...sideredHarmful
http://www.kuro5hin.org/story/2002/11/18/22112/860
http://www.softpanorama.org/People/O...ads/sld001.htm
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!!!Originally Posted by Salem
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.Originally Posted by zonf
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!
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.
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!