Omgili - forum search, search forums  
  

Discussions about java thread

Displaying 1 - 10 out of 31,092 discussions.  
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
On my busiest production installation, on occasion I get a single thread that seems to get stuck in an infinite loop. I've not managed to figure out who is the culprit, after much research and debugging, but it seems like it should be possible. Here are...
Started by on , 5 posts by 5 people.  
If your using JDK 1.6.0_07 or above, you can the run-away thread....
If this is an IntelliJ IDEa feature, or it is default in java) but it will tell you which thread is deadlockedYou can use JConsole to view the thread's stack trace.
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 0 is the parent of all the process, will...
Started by on , 6 posts by 6 people.  
A "Java thread" is just problem is that killing or suspending a Java thread is likely to mess up other threads that dependThere....
Program using threads is no different from a native program using threads.
I want a thread in a Java program to loop until all other threads die, and then end the loop. How can I know when my loop thread is the only thread remaining? In my situation, the loop thread will have no reference to any other threads, so I don't think...
Started by on , 5 posts by 5 people.  
Set your loop thread to daemon mode setDaemon(true); and Java will kill it for you if all....
Would this not be a situation where you would consider the Thread Pool Pattern ? If not, would or might not help, depending on your use-case.
Ask your Facebook Friends
What is the difference between threads in java and native threads?
Started by on , 3 posts by 3 people.  
You can expect/do with Java threads all kind native thread for each Java thread and that the operating system does all the scheduling....
It is, a Thread in Java is implemented via a native thread.
A Java thread is always in one of the following ten states: NEW: Just starting up, i.e., in process of being initialized. NEW_TRANS: Corresponding transition state (not used, included for completness). IN_NATIVE: Running in native code. IN_NATIVE_TRANS...
Started by on , 4 posts by 4 people.  
Kdgregory is correct that thread state won't necessarily reveal what where the threads are in....
Two of them about the application as a whole.
Consider the BLOCKED state: there are many things that can cause a thread to be blocked.
My application uses loads of Java threads. I am looking for a reliable understanding how the JVM (version 5 and 6) maps the Java threads to underlying Windows threads. I know there is a document for mapping to Solaris threads, but not Windows. Why doesn...
Started by on , 4 posts by 4 people.  
Doesn't the constructor allow you to name a thread? Or do you mean name them and view their name on some windows thread browser? How to name a Win32 thread Unfortunately, this seems like.
Hello, I'm making a Java application with an application-logic-thread and a database-access-thread. Both of them persist for the entire lifetime of the application. However, I need to make sure that the app thread waits until the db thread is ready (currently...
Started by on , 8 posts by 8 people.  
This will block the thread until the signal is received instead of constantly polling to see if a condition for deadlocks- make sure you signal....
The event would be created (or signaled) in your worker thread.
To wait for a particular event.
In Java, Die is one of the states on a thread. What causes a thread to enter this state?
Started by on , 5 posts by 5 people.  
If an exception is thrown that propagates beyond....
When the run() method returns Edit: If a thread is marked as "daemon" it may die before the run, the other answers and the Thread API , here is a complete list: If the run() method returns.
How can it possible that after implementing Runnable interface in java Thread methods are call?
Started by on , 5 posts by 5 people.  
In the below exmaple (from Java tutorial ) the Thread is started by invoking the start() method: public(); } } And if you look at javadoc for the method 'start()` of Thread class in the JAVA API, this is what it says: start....
How can i see the number of threads in a java?
Started by on , 6 posts by 6 people.  
Additionally....
There is a static method on the Thread Class that will return the number of active threads controlled by the JVM: Thread.activeCount() Returns the number of active threads in the current thread's thread group.
Page: 1   2   3   4   5   6   7   8   9   10  
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost