I have a Java program that runs many small simulations. It runs a genetic algorithm, where each fitness function is a simulation using parameters on each chromosome. Each one takes maybe ... |
If I want to run several processes in the same jvm without synchronizing (I don't care about multi things running at the same time... I only want to avoid re-instanciating the ... |
I have a C program that will be storing and retrieving alot of data in a Java store. I am putting alot of stress in my C program and multiple threads ... |
I am unable to execute the java command in a specific folder , throwing error as below
JVMXM008: Error occured while initialising System ClassException in thread "main" Could not create the Java ...
|
Say I have a dual-core windows laptop and I run a multithreaded application on it. Does the JVM run only on one core or do the JVM and the OS somehow ... |
Wrote a quick Java proggy to spawn 10 threads with each priority and calculate pi (4*atan(1) method) with BigDecimals 500,000 times each, join on each thread and report the elapsed time ... |
I have two machines, one running 2.4.18 and one running 2.4.20. Both run Java 1.5 build 13. On one machine (2.4.18), each thread shows up as a separate process ... |
|
In Production system,like Banking application running in Linux environment,
How do I distinguish running Java threads and native threads?
In Linux there will be Parent process for every child process, and they say ... |
Whenever a class is loaded, what are stored in the heap and what are stored in the stack ?
Also where does the threads reside ?
|
I want to test some class methods that contain logic dependent on the current time it is running. I'd like to set the thread/jvm/system time to a specific future date in ... |
Consider a very large Java VM with a great many threads running a web server.
Now consider a sample of the output generated by jmap -histo that looks something like this:
...
|
We have a C++ application with an embedded JVM (Sun's). Because we register our own signal handlers, it's recommended we do so before initializing the JVM since it installs its own ... |
This question may be very basic about Java JVM. If I've a Java standalone program and if, for example, 5 processes of this program are running at a particular time ... |
I've a java web application running on an Tomcat server(Linux). In the production environment I'm facing some performance issue. At random intervals the jsvc process on which tomcat is running starts ... |
I am looking for a tool or api which allows deterministic execution of Java threads for testing purposes. Thus, allowing context switches in java code at certain locations in byte code. ... |
I have a rather massive number of threads being created inside a clojure program:
(import '(java.util.concurrent Executors))
(def *pool*
(Executors/newCachedThreadPool))
(defn do-something []
; work
Thread/sleep 200
...
|
I have called a native program which creates another thread, which attaches itself to the JVM. Now I want to access the methods of the JVM, but it fails. Here is ... |
Could someone please provide explanation how Java multi-threaded program (e.g. Tomcat servlet container) is able to use all cores of CPU when JVM is only single process on linux? Is there ... |
When playing around with multithreading, I could observe some unexpected but serious performance issues related to AtomicLong (and classes using it, such as java.util.Random), for which I currently have no explanation. ... |
I call a dll from Java using JNI. The DLL calls another thirdparty library which spawns a bunch of threads and sends callbacks to my dll. I want these callbacks to ... |
Why Java simple GUI application creates such a lot of threads...
|
I am familiar with
http://download.oracle.com/javase/6/docs/api/java/lang/management/ThreadMXBean.html
I would like to test\profile\measure how many CPU time did the thread get.
I added the following to the my thread constructor:
ManagementFactory.getThreadMXBean().setThreadCpuTimeEnabled(true);
if(!ManagementFactory.getThreadMXBean().isCurrentThreadCpuTimeSupported())
...
|
hi: I use visualVM connect a multi thread Java application, thread has 4 status, namely running, sleeping, wait, Monitor. What does this Monitoring status mean? What's ...
|
My goal is to come up with figure of max threads which can run in parallel. I was pointed to many links by Google, where they give simple math by dividing ... |
I have a challenging asynchronous programming task, wonder if anyone did anything like that with Java. Let's assume I'm developing a framework which will be used like this:
- Do some custom Java ...
|
I noticed that JVM threads run as processes under Linux for some reasons (correct me if I'm wrong). Furthermore, it is a fact that Intel's Hyperthreading provides additional parallelization only for ... |
Hi, Is it possible to access the internal variables of a JVM, which is executing a Java process. I understand that the JVM treats each process as a separate thread. The solution I would appreciate should allow me a run time inspection rather than using gdb and getting a dump .Thanks in advance |
Here is it: Resource declaration: public static Hashtable stateTable = new Hashtable(); public static Vector vtElementOrder = new Vector(); 2 methods to add/remove resource elements private static void addElementHashTable(String ObjectName, ViewPanel viewPanel) { try { stateTable.put(ObjectName, viewPanel); vtElementOrder.addElement(ObjectName); } catch(Exception _ex) { } } private static void removeElementHashTable(String s) { try { for(; stateTable.containsKey(s); stateTable.remove(s)); for(; vtElementOrder.contains(s); vtElementOrder.removeElement(s)); } catch(Exception _ex) ... |
I've been asked to research a potentially disasterous situation. We have 25 JVM's processing requests. We jave an executable that is single threaded although is being accessed via JNI by 1 or more of the 25 JVM's. The class that accesses this executable has been modified so that the method is synchronized as to only allow a single request at a ... |
Hi, We are running Threads in our application. The Thread status are being are stored in a database. But for some issue fix, people are changing the thread staus in the database and running the threads again. It creats problem in our application. The application is running in UNIX. What we would like to know is, is there any mechanism to ... |
I got a doubt on thread priorities, Assume that I have only two JVMs(JVM-A and JVM-B) running in a single physical machine. Since these two JVMs are the only process to the OS, lets assume that the processor cycles is 50:50 for each JVMs, meaning the share the CPU cycles equally. Suppose I have 5 threads in each JVM and JVM-A's ... |
Hi everyone, I have read a article that when it comes to multi processor systems , we can't get the advantage of running multiple threads simultaneously since every threads are in a single JVM process. Indeed when I go further, I got to know that some JVM implementations are built to map Java thread to OS level native threads. My question ... |
Thanks for the reply. Ok so supposing the Scheduler butts in before the Thread.sleep(), does that mean the thread goes back into the runnable pool? i.e. the Thread.sleep() won't be invoked? Is run() continued on (at the point the Scheduler interrupted) when the thread becomes a thread of execution again? Hope im making sense. Best regards |
|
Greetings all im sorry if som1 finds my question weird. my leacturer gave me this question in an exam and i couldnt solve it. i need to know the difference between linux threads and JVm threads. i've read couple of articles on JVM on sun site and a few on linux pthreads but i am unable to find somthing that could ... |
Hi Folks, Just curious if the thread scheduler is a part of the JVM or OS, or either or both ? I tried few thread pages in JLS,but couldnot locate the exact sentence describing this. However some other resources have given me contradicting information. For example, [Reference1|http://www.deitel.com/articles/java_tutorials/20051126/JavaMultithreading_Tutorial_Part3.html] states that it is a part of the OS,whereas [Reference2|http://book.javanb.com/java-threads-3rd/jthreads3-CHP-9-SECT-1.html] states that it is ... |
|
|