Task management in OpenCPU

Is it possible to manually schedule task or in general doing task management (creation, killing etc) in OpenCPU?

NO for OpenCPU, YES for ThreadX
M66, MC60/M OpenCPU tasks is pre-defined in custom_task_cfg.h
you can only enable/disable task (once)

Thnx mate, one more thing, is the names (proc_subtask & subtask id) are fixed?

this struct is “auto” enumerated for taskID 0 or 1 from beginig, you can print proc_task argument to see

proc_main_task, is application main task
proc_reserved1, for RIL (user hidden) { if you disable this two tasks you can not use RIL }
proc_reserved2, for RIL helper (user hidden)

proc_subtaskX is user-ware sub tasks

1 Like