What is the priority of the JavaFX thread?

Richard Bair richard.bair at oracle.com
Thu Dec 6 13:29:46 PST 2012


I don't *think* we set any thread priorities. I have tried different thread priorities in apps in the past (such as lowering the priority of background threads) and it didn't make a difference. I should look at the concurrent APIs in javaFX and see if they still set the thread priority…in fact it does. But I haven't noticed any app behavior that changed by doing so. But I haven't tried to set the thread priority from anywhere but within Java, and I'm on a mac, so maybe it works differently (although I am pretty certain I've talked to VM engineers who have said thread priorities are ignored on HotSpot).

Richard

On Dec 6, 2012, at 12:41 PM, Randahl Fink Isaksen <randahl at wefend.com> wrote:

> Does JavaFX intentionally set a priority for the JavaFX thread? I would very much like to hear what the decision behind setting or not setting such a priority is.
> 
> The reason I am asking is, on my development Mac, it seems the JavaFX thread is easily starved by other CPU load, and I was thinking if the developers of JavaFX did or did not expect application developers to manage JavaFX thread priority.
> 
> Thanks
> 
> Randahl



More information about the openjfx-dev mailing list