Page 1 of 1
Multi Thread Programming
Posted: Sun Jan 10, 2010 10:31 pm
by davidthefat
Is it a good investment to start learning on the theory and other stuff about multi threading while still in highschool? I mean with the Moore's law, every day pcs will all be multi processor by the time I get into college (Im a sophomore) and Its never to early to learn isnt it?
Also the game industry, its all multi processor now, with the PS3 and 360, and the next gen will have even more cores and processors, by the time I graduate Highschool, getting pretty complicated in the industry isnt it?
Re: Multi Thread Programming
Posted: Mon Jan 11, 2010 4:01 am
by K-Bal
The principals of multi-threading are very easy. The hardest part is synchronizing your variable access so that multiple threads still give you a performance boost. I would recommend you just try it in your next project. I.E. try to do the logic and the rendering in two threads.
Re: Multi Thread Programming
Posted: Mon Jan 11, 2010 11:05 am
by GroundUpEngine
Defiantly man multithreading is the way forward! When I first tried it I did something similar to that example and carried out 3D rendering on one thread and client-server packet transfer on the other, the result was really optimized!
Re: Multi Thread Programming
Posted: Mon Jan 11, 2010 12:20 pm
by Kros
Yes.
Re: Multi Thread Programming
Posted: Mon Jan 11, 2010 6:14 pm
by davidthefat
One thread for rendering and another checking collision and getting input and ect? Any books focusing on multi threading out there?
multi threading in other words is a team of processes acting as one program?
Re: Multi Thread Programming
Posted: Tue Jan 12, 2010 12:13 pm
by RyanPridgeon
davidthefat wrote:One thread for rendering and another checking collision and getting input and ect? Any books focusing on multi threading out there?
multi threading in other words is a team of processes acting as one program?
Yep.
I think it's probably worth noting here that SDL can only pump and process events in the main thread. Kinda gay, but oh well.