• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

CODERS HELP! : How do multithreading in c++?

halik

Lifer
I know how to do it in JAva, but i cant seem to find any tutorials in c++ (no MFS, win32 etc) just plain ANSI c++.


let me know
 
I would like to help but it would require that I would be a wearing a 8 layer flame retardent suit.

Ausm
 
Originally posted by: ausm
I would like to help but it would require that I would be a wearing a 8 layer flame retardent suit.

Ausm
eh? whatever happenend to that one good old saying "if you have nothing clever to say, keep your mouth shut"...
 
threading is usually OS specific when done in c/c++ , certain OS's have better support for them then others, linux for instance has extremly poor support for threading as the scheduler was made by a bunch of chimps, while solaris has a much better scheduler avaiable and the OS supports posix threads and such. As i understand it there is no ANSI C++ mechanisim to make threads because the threading model is so tightly coupled with the underlying thread pool/scheduler/etc.

 
if you want to try and make your thread more portibale you could implement a Class Factory that would return you an OS specific instance of your class that can make threads for you. that way all your code writes to some interface you made and you can support an arbitray number of OSs with affecting your core program segment.
 
Originally posted by: halik
Originally posted by: ausm
I would like to help but it would require that I would be a wearing a 8 layer flame retardent suit.

Ausm
eh? whatever happenend to that one good old saying "if you have nothing clever to say, keep your mouth shut"...

you're thinking of "nothing nice to say". we can be as dumb as we want here.
 
what platform are you working on


it this on unix/gcc? or windows


its really easy in unux, well in windows too for that matter


if you are using windows, are you gonna use visual c++ or borland (builder)



 
Back
Top