C or C++ threads

Started by
7 comments, last by Verg 18 years, 10 months ago
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.
Just because it is not nice, doesn''t mean it is not miraculous.
Advertisement
boost threads
Thanks.
Just because it is not nice, doesn''t mean it is not miraculous.
Quote:Original post by nmi
boost threads


seconded.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
pthreads.

Handy links:
http://www.humanfactor.com/pthreads/pthreadlinks.html
http://www.yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html
http://sources.redhat.com/pthreads-win32/
-----http://alopex.liLet's Program: http://youtube.com/user/icefox192
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?
Free speech for the living, dead men tell no tales,Your laughing finger will never point again...Omerta!Sing for me now!
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]
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])
Free speech for the living, dead men tell no tales,Your laughing finger will never point again...Omerta!Sing for me now!
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]

my_life:          nop          jmp my_life
[ Keep track of your TDD cycle using "The Death Star" ] [ Verge Video Editor Support Forums ] [ Principles of Verg-o-nomics ] [ "t00t-orials" ]

This topic is closed to new replies.

Advertisement