View Single Post
  #1   Spotlight this post!  
Unread 17-01-2009, 14:38
aaeamdar's Avatar
aaeamdar aaeamdar is offline
Post-A-Holic
AKA: Paul Dennis
FRC #1719 (The Umbrella Corp)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Baltimore, MD
Posts: 231
aaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant future
Re: c++ multi threaded program?

I'm not sure why you would ever want to be using multiple threads for this type of project - there's just no need for them (that I can think of). Threads are for when you need to be doing multiple things concurrently - what two things (or more) would you need to be doing concurrently in this robotics application? An easy example of thread use in other applications is when you want to add music to your videogame that you just wrote. The two things you want to be doing concurrently are:

1. Keeping up with the game (resolving collisions of spaceships with lasers, etc)
2. Loading and playing the next byte of sound data.

So, no, can't really see how anyone would use threads to do anything other than confuse themselves - but interested to hear others' ideas.

-Paul