Saturday, April 4, 2009
How to implement Lower Thread Priorities?
If you have a rarely used feature that uses a lot of CPU resources, you can lower the priority of the thread that handles requests for that feature. Use the setPriority() method of java.lang.Thread to temporarily lower the thread priority. This will result in higher latency for users of that expensive feature, but prevents that feature from hurting performance of other users
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment