|
Re: Timing, threads, the Field Management System, etc
Quote:
Originally Posted by virtuald
Threads are also evil (once again, with exceptions) in robot code and when used improperly can lead to difficult to diagnose bugs, prefer asynchronous constructs such as state machines instead.
|
Threads are always evil. Way too easy to put yourself into a deadlock/livelock or put your code in an "impossible" situation with bad use of concurrency constructs. Really the problem is mutable state + threading + bad use of concurrency constructs.
__________________
Nicolet F.E.A.R. (Team 4786) - Aerial Assist - Programming Manager
Nicolet F.E.A.R. (Team 4786) - 2015+ - Junior Mentor
SuperScouter for FRC Developer
|