I have a small problem: I need to write a multithreaded
application ( Mesa + pthead ), basically my app will
perform other tasks than pure graphics. The problem is
that so far the only OpenGL examples I have seen are
not multithredaded, so if someone could give me the source code of a small mutlithreaded application that uses OpenGL for rendering, or a chunk of code, even pseudo code will do. Help I am stuck !!

if you go to
and then click on the OpenGL section, this guy has a pretty good example of How to use MFC and OpenGL AND multithread the GL!
you need to do some tweaking though, but that is simple enough.

Good Luck!