VEXcode has some examples for using threads (same thing as tasks).
You may wish to read through this topic