Re: Priorities in uClinux
Yevgeni Tunik <[email protected]> Sun, 13 Apr 2008 05:37:01 -0700 (PDT)
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers.coldfire |
|---|---|
| Message-ID | <[email protected]> |
The simplest way to increase priority of the task is to launch it from main() with high priority. To prevent monopolizing all the CPU time by this high priority task, the task needs go to idle state by delay() or waiting semaphore, etc - reasonably often. > -------------------------------------------------------------- > From: Bryan B <[email protected]> > To: [email protected] > Subject: Priorities in uClinux > > I have a function inside my main() program that needs increased priority > when the function is running to decrease time delays. The function can hog > all of the processing when it is running and can release it when done. > What's the best way to do this? I have heard of using the 'nice factor', but > am not sure how to implement it inside my main C program. Thanks for any > help. > Regards, Yevgeni Tunik 052-448-9271 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- [email protected] Send a post to the list. [email protected] Join the list. [email protected] Join the list in digest mode. [email protected] Leave the list.