Re:

Greg Ungerer <[email protected]> Sun, 13 Apr 2008 23:59:28 +1000
Newsgroups gmane.comp.hardware.motorola.microcontrollers.coldfire
Message-ID <[email protected]>
Hi Bryan,

Bryan _ wrote:
>  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.

Use the "nice" system call to change process prority.
"man 2 nice" on any Linux box.

Regards
Greg


------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     [email protected]
SnapGear -- a Secure Computing Company      PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.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.