1000 Java Tips ebook
Free "1000 Java Tips" eBook is here! It is huge collection of big and small Java
programming articles and tips. Please take your copy here.
Take your copy of free "Java Technology Screensaver"!.
Easy Learn Java: Programming Articles, Examples and Tips - Page 82
1060 Stories (530 Pages, 2 Per Page)
Question: I get an error ''Green threads not supported'' when tried to use -gree
Question: I get an error "Green threads
not supported" when tried to use -green option on Windows.
But my application runs just fine...
Does this mean that by default JVM is using native option?
Answer: Just Solaris and Linux support
the option -green threads. Green threads are independent of native threads and
less efficient. The downside is that using green threads means system threads on
Linux are not taken advantage of and so the Java virtual machine is not scalable
when additional CPUs are added.
On Windows JVM uses native threading.
Our older tips: March 22, 2001 - October 21, 2002
All published and not published on the site tips read
14 comments | | Score: 0
Posted by jalex on Tuesday, September 16, 2003 (00:00:00) (2997 reads)
Is it something new in J2SE 1.4.1?
Question: Is it something new in J2SE
I would like to say about next things that I was glad to read about:
- Over 2000 bug fixes!!!
- Two new garbage collectors have been added to improve application
Concurrent Mark and Sweep Collector. This collector executes mostly
concurrently with the application. It trades the utilization of processing
power that would otherwise be available to the application for shorter garbage
collection pause times.
Parallel Garbage Collector. This collector enables garbage collection to
occur on multiple threads for better performance on multiprocessor machines.
P.S. A few flags were added to command line to manage those GSs...
- The Sun SecureRandom implementation now also makes use of an operating
system-provided entropy source on Windows platforms, which can improve
the startup time of cryptographic applications considerably.
- A deadlock detection utility has been added to the Java HotSpot VM. The
utility is invoked by a ctrl+ (on Linux or the Solaris Operating Environment)
or a ctrl-break (on Microsoft Windows) on the command line while an
application is running.
The utility detects Java-platform-level deadlocks, including locking done from
the Java Native Interface (JNI), the Java Virtual Machine Profiler Interface
(JVMPI), and Java Virtual Machine Debug Interface (JVMDI). When invoked, the
utility displays a thread dump to standard out and indicates any
Java-platform-level deadlocks it detects. Refer to this sample output.
If the application is deadlocked because two or more threads are involved in a
cycle to acquire monitors, then the list of such threads and monitors involved
in the deadlocks are displayed. Note, however, that this will not find
deadlocks involving threads waiting on monitors on which no signal will be
24 comments | | Score: 0
Posted by jalex on Monday, September 15, 2003 (00:00:00) (3214 reads)