Brent wrote:
> But why does the JVM have to know my intent...  It knows that I
> started a thread and it knows that it has some priority.  So why can't
> it just stick all of the threads that were started for a particular
> priority on a queue and then iterate through that queue.  It might be
> easier said then done, but that's what I don't understand.
>
> Example:
>
> If you have 3 threads with same priority...
>
> Thread 1 (default priority 5)
> Thread 2 (default priority 5)
> Thread 3 (default priority 5)
>
> Let's pretend that each thread executes 2 loops.
>
> Execute Thread 1
> Execute Thread 2
> Execute Thread 3
> Execute Thread 1
> Execute Thread 2
> Execute Thread 3
>
> If the threads have different priorities then this wouldn't work, but
> assuming that they have the same priority why doesn't the JVM do
> this?  Can you dumb it down for me more?
>   
you'll starve threads for CPU.

Regards,
Kirk


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to