C (188/257)

From:
Date:20 Feb 2001 at 12:39:52
Subject:Tasks vs. Threads

Hello guys,
I have nearly no experience with tasks/threads but I was working on a
software renderer for 3d gfx, since the renderer draws the image line by
line (it's a segment-buffer phong shader) I thought that it could be easy
to make it multi-processor compatible by spawning from the main proggie
two tasks (or threads, later on this) and send them messages for drawing
a line, waiting until they answer that they have ended and then sending
another line, etc... Now, it looks like there are two ways of doing
this, the first is by using Tasks (I believe) and the other is using
Threads like in a Unixish environment (as seen in threads.library ;-).
First of all what are the differences between tasks and threads? I
suppose that the more 'portable' approach is by using threads (since
unix clones seem to use that), what are the other advantages of a method
over the other? Can someone shed a little of light on this poor
single-task coder? ;-) Thanx in advance guys

Gabriele



TiscaliNet, libero accesso ad Internet.
http://www.tiscalinet.it

------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/982669197/
---------------------------------------------------------------------_->