Thread: CPU at 100%
View Single Post
  #10   Spotlight this post!  
Unread 11-04-2014, 23:58
tcjinaz tcjinaz is offline
Tim
FRC #3853
Team Role: Mentor
 
Join Date: May 2011
Rookie Year: 2011
Location: Arizona
Posts: 206
tcjinaz has a spectacular aura abouttcjinaz has a spectacular aura about
Re: CPU at 100%

Quote:
Originally Posted by EDesbiens View Post
We had a lot of global variables and they started dead-locking... We changed some of them into local variables to avoid dead-locks.
You were writing globals from multiple places? If so, there are some other ways of managing those sorts of communications. They're not in my toolkit today, look for semaphores and queues and the like. And probably you fixed it in the whole with local variables (empirical observations are important).
__________________
Software Mentor
3853 Pridetronics[

Reply With Quote