• Advertisement
Sign in to follow this  

C or C++ threads

This topic is 4588 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone know any C or C++ thread librarys that are cross platform, primarily for windows and linux? I am trying write a program that uses nonlinear optimisation algorithm to do inverse kinematics but because the nonlinear method is slow, it is difficult for it to be interactive. Therefore I am considering running the display (OpenGL) and optimisation in separate threads. Alternative to using threads are welcome too but keep in mind that I have to use the nonlinear optimisation algorithm for reason I don't need to go into.

Share this post


Link to post
Share on other sites
Advertisement
pthreads.

Handy links:
http://www.humanfactor.com/pthreads/pthreadlinks.html
http://www.yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html
http://sources.redhat.com/pthreads-win32/

Share this post


Link to post
Share on other sites
Just out of curiosity, if you were doing something not just to get it done as soon as possible, but also to learn stuff while doing it, would there be something to gain by rolling your own thread wrapper/library?

Share this post


Link to post
Share on other sites
Quote:
Original post by SirLuthor
Just out of curiosity, if you were doing something not just to get it done as soon as possible, but also to learn stuff while doing it, would there be something to gain by rolling your own thread wrapper/library?


Rolling your own thread system certainly won't be the fastest way, but you'll certainly learn something if you do. People roll their own container classes for the same reason, as a learning experience. I guess you'll have to decide which takes priority, getting it done ASAP or learning how it initimately works. [grin]

Share this post


Link to post
Share on other sites
I'll go for 'learn intimately how it works' [grin] Hell, I have a few things I need rolled into it anyway that I doubt Boost has (I have some rather specific and odd needs from my threads, or at any rate, I will, once I get more of my engine core done [smile])

Share this post


Link to post
Share on other sites
Quote:
Original post by load_bitmap_file
Rolling your own thread system certainly won't be the fastest way, but you'll certainly learn something if you do. People roll their own container classes for the same reason, as a learning experience.


Suddenly, "rolling your own" takes on a new meaning [cool]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement