Search the web
Sign In
New User? Sign Up
Sumo11users · Sumo11 Robot Controller
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Processes   Message List  
Reply | Forward Message #508 of 536 |
Re: [Sumo11users] Processes

Thanks!
 
This helps a lot.  

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!

Sat Nov 18, 2006 4:26 pm

bxa1322003
Offline Offline
Send Email Send Email

Forward
Message #508 of 536 |
Expand Messages Author Sort by Date

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,...
bxa1322003
Offline Send Email
Nov 17, 2006
5:18 pm

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...
Jim Peterson
jcpjimcp
Offline Send Email
Nov 18, 2006
5:37 am

Thanks! This helps a lot. Jim Peterson <jimcp@...> wrote: Be sure you read the help for start_process() and kill_process(), defer() and hog_processor(), as...
Belal Ahmad
bxa1322003
Offline Send Email
Nov 18, 2006
4:32 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help