Quote:
Originally Posted by matan129
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.