I’m not sure what the difference is between task and thread in C++ pro. Both seem to allow you to run multiple processes in parallel. What’s the difference between them or the preferred method to use?
Thanks!
I’m not sure what the difference is between task and thread in C++ pro. Both seem to allow you to run multiple processes in parallel. What’s the difference between them or the preferred method to use?
Thanks!
They have very similar functionality and implement cooperative multi tasking in the same way on the brain. vex::task has an API that will be familiar to existing ROBOTC users, vex::thread has some similarities with std::thread.