Re: How to run tasks with priority?
- From: "George George via JavaKB.com" <forum@xxxxxxxxxx>
- Date: Wed, 01 Jun 2005 02:33:03 GMT
Thanks Boudewijn,
Your reply is very helpful! I found that if I use priority feature of Java
thread, then I can only have (MAX_PRIORITY - MIN_PRIORITY) different
priorities, which may limit my application. I am wondering whether there
are any alternate solutions which may have more different priorities.
> You can accomplish this behaviour with the Thread#yield
> () method.
How can I utilize utilize yield? Could you please give me a simple sample?
regards,
George
--
Message posted via http://www.javakb.com
.
- Follow-Ups:
- Re: How to run tasks with priority?
- From: Boudewijn Dijkstra
- Re: How to run tasks with priority?
- Prev by Date: paint() being recalled ALOT
- Next by Date: Re: Java tools: Is eclipse everything what I need ?
- Previous by thread: paint() being recalled ALOT
- Next by thread: Re: How to run tasks with priority?
- Index(es):
Relevant Pages
|