Newer
Older
EPQ-3D-renderer / src / main / java / uk / org / floop / epq3d / testing.java
package uk.org.floop.epq3d;


//import static java.lang.FdLibm.Exp.compute;
// Java code for thread creation by extending
// the Thread class
class MultithreadingDemo extends Thread {
    public void run()
    {
        try {
            // Displaying the thread that is running
            System.out.println(
                    "Thread " + Thread.currentThread().getId()
                            + " is running");
        }
        catch (Exception ignored){}
    }
}

// Main Class
public class testing {
    public static void main(String[] args)
    {
        int n = 8; // Number of threads
        for (int i = 0; i < n; i++) {
            MultithreadingDemo object
                    = new MultithreadingDemo();
            object.start();
        }
    }
}