Re: How to run tasks with priority?
- From: "Boudewijn Dijkstra" <usenet@xxxxxxxxxxxxxxxxxxx>
- Date: Mon, 6 Jun 2005 17:47:39 +0200
"George George via JavaKB.com" <forum@xxxxxxxxxx> schreef in bericht
news:ccbe4cc6a6a0411a813b5d5ab3fbd444@xxxxxxxxxxxxx
> Thanks Boudewijn,
>
>
> Boudewijn Dijkstra wrote:
>>[quoted text clipped - 3 lines]
>>>
>>> Do you mean using yield method will idle the CPU?
>>
>>No. I said that with yield, there wasn't a chance of actually idling the
>>CPU >>(as long as there are other threads ready).
>
> Sorry that I do not express myself very clearly. I mean yield method will
> make current thread idle on CPU (current thread will not occupy CPU time)
> and it will give chances to other threads to run on CPU. Am I correct?
That is correct. But yield will have no effect if the current thread is the
only 'ready' one with the same priority.
.
- Follow-Ups:
- Re: How to run tasks with priority?
- From: George George via JavaKB.com
- Re: How to run tasks with priority?
- References:
- Re: How to run tasks with priority?
- From: George George via JavaKB.com
- Re: How to run tasks with priority?
- From: Boudewijn Dijkstra
- Re: How to run tasks with priority?
- From: George George via JavaKB.com
- Re: How to run tasks with priority?
- From: Boudewijn Dijkstra
- Re: How to run tasks with priority?
- From: George George via JavaKB.com
- Re: How to run tasks with priority?
- From: Boudewijn Dijkstra
- Re: How to run tasks with priority?
- From: George George via JavaKB.com
- Re: How to run tasks with priority?
- From: Boudewijn Dijkstra
- Re: How to run tasks with priority?
- From: George George via JavaKB.com
- Re: How to run tasks with priority?
- Prev by Date: Re: jsp question
- Next by Date: Re: installed j2re 1.5 but 1.3 still showing up as installed version
- Previous by thread: Re: How to run tasks with priority?
- Next by thread: Re: How to run tasks with priority?
- Index(es):
Relevant Pages
|