View Single Post
  #7   Spotlight this post!  
Unread 12-01-2015, 14:03
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: Utilizing Both RoboRIO Cores

Quote:
Originally Posted by matan129 View Post
Actually, the operating system will not balance any program on two cores if you are not using multiple threads, which you should hard code.

Although that if you're talking about Java/C++ WPILib specifically, I think that every command is ran in a different thread, and you also have the "task" class in WPILib which offers a more convenient interface to operate threads.
We have any actual operating system, not a glorified boot loader. By default, we're running multiple threads. At least one is our program, the rest is the Linux kernel, a Web Server, and anything else running on the RoboRIO.

And as you yourself just stated, multiple threads are automatically built into WPILib. As crake noted, in LabView multithreading is automatically performed by the compiler without need for programmer declaration.
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.