import java.util.concurrent.Executors;
import java.util.concurrent.ExecutorService;
public class RunnableTester
{
public static void main( String[] args )
{
// create and name each runnable
PrintTask task1 = new PrintTask( "thread1" );
PrintTask task2 = new PrintTask( "thread2" );
PrintTask task3 = new PrintTask( "thread3" );
System.out.println( "Starting threads" );
// create ExecutorService to manage threads
ExecutorService threadExecutor = Executors.newFixedThreadPool( 3 );
// start threads and place in runnable state
threadExecutor.execute( task1 ); // start task1
threadExecutor.execute( task2 ); // start task2
threadExecutor.execute( task3 ); // start task3
threadExecutor.shutdown(); // shutdown worker threads
System.out.println( "Threads started, main ends\n" );
} // end main
} // end class RunnableTester
regular expression regular definition cd
ReplyDeleterelocation linking concept
three dimensional display methods
Throw Keyword in Java
integrity constraints in dbms
canonical cover
8086 pin diagram
doubly linked list
Absolute Loaders
Storage allocation strategies
Different Loading Schemes
ReplyDeleteRelocation: Linking Concept
Regular Expression and Regular Definition
IEEE 802.11 Architecture
Phases: Language processor (Toy compiler)
80386 Architecture
Block Cipher Principles