Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does the JRockit JVM support thread priorities?

0
Posted

Does the JRockit JVM support thread priorities?

0

Yes, the JRockit JVM supports thread priorities on Windows (both IA32 and Itanium); It is not supported on Linux or Solaris. If you are running either IA32 or Itanium Windows, you can configure the JVM to stop ignoring priority change requests by passing the flag -XXusethreadpriorities. Despite being valid on all platforms, this flag is only meaningful on Windows. Priority change requests are ignored by default because, if they are improperly applied, applications will behave worse than before the change. If you set priority too high for a thread, it will consume too many resources, severely impacting performance. On the other hand, if you set it too low, priority inversion can result. Priority inversion means that high priority threads never get to run because they are waiting for a lock held by a low priority thread, which itself never gets the chance to release the lock because the high priority threads get all the CPU time. Because of this, setting and using priorities should be at

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123