Thanks!
This helps a lot.
Jim Peterson <jimcp@...> wrote:
Jim Peterson <jimcp@...> wrote:
Be sure you read the help for start_process() and kill_process( ),
defer() and hog_processor(), as well as the tutorial pages in the
help for process management. If you still have questions, feel free
to post them with code that illustrates your question.
You can certainly run a process independent of main. Understand it is
not concurrent execution but context switching between the code in
the process and the code in main. So while code is currently
executing in main no process execution will happen, at points between
IC instructions and at the discretion of the IC firmware the current
process is suspended and any other processes will run. The defer()
function causes an immediate context switch, the hog_processor()
function prevents switches for 256ms. Typically started processes set
global variables to be tested by main() or other processes.
Hope that helps,
Jim
At 12:06 PM 11/17/2006, you wrote:
>Will a process run independent of the main once it is called from the
>main?
>
>What I want to do is to check for a condition 'continuously' and
>basically, whenever this condition is true, the `main' should
>terminate. But I don't want it the case where I call on this process or
>function at the beginning of the loop or at the end or any other
>pattern as such.
>
>Is there a way of coding so that the process is continuously running
>with the others tasks running simultaneously in the background or vice
>versa?
>
>Any help is greatly appreciated!
>
>
Sponsored Link
$420,000 Mortgage for $1,399/month - Think You Pay Too Much For Your Mortgage? Find Out!