Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: Find the thread running in the virtual machine

  public class CurrentThread extends Thread
  	{
       private Thread thread_perso;  
       public CurrentThread()
       	{
          // get curre

Java: Check if the thread is started and is running

 public class ThreadLive extends Thread
 	{  
       public void run()
      {  
           for ( int i = 0; i < 10; i++ )
           	{

Java: how to suspend and resume a running thread

 import java.awt.*;
 import java.awt.event.*;
 import javax.swing.*;
 public class ThreadEtat extends JFrame implements Runnable
  	{
      private s

Java: How to find and change the name of a thread

  public class ThreadName extends Thread
  	{
       private Thread mon_thread;
       public ThreadName()
       	{
          // the thread created

Java: How to stop a running thread

import java.awt.*;
 import java.awt.event.*;
 import javax.swing.*;
/****
 * Le programme Stoppe un thread
 * en cours d'exécution
 ***/
 public clas

Java: safe collection operation

import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
public class CollectionSafeIteration

Java: How to create and run a thread

  public class ThreadExemple extends Thread
  	{  
       public void run()
      {  
           for ( int i = 0; i < 10; i++ ) {  
               Sy