• Post Reply Bookmark Topic Watch Topic
  • New Topic

NPTL and Java Thread Priority  RSS feed

 
steve andrews
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At my company we are developing a large multi-threaded Java app that runs on a custom Redhat Linux distribution. One of the app's functions is to collect real-time signal samples and display them as "traces" on a sweeping screen display (like the ECG monitors you see on TV).

The trace-display feature has been challenging because the Sun JVM for Linux does not honor user-defined Java thread priorities.

Redhat has indicated that they can patch our distribution to replace LinuxThreads with NPTL. I was wondering if anyone knew what effect NPTL might have on setting thread priorities via the JVM. My guess is none; I doubt if the JVM even knows or cares about the threading model of the underlying OS.

Thoughts?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by steve andrews:
I doubt if the JVM even knows or cares about the threading model of the underlying OS.


Many JVMs -- Sun's Linux one included -- use a 1:1 native thread/Java thread mapping. There's no scheduler in the JVM -- it's all handled by the platform's thread library.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!