20-CS-694 Advanced Programming Techniques Spring 2012

Interfaces, Exceptions, Graphics, Animation, Threads, Reflection, Networking, RMI, JDBC, JNI

    All lectures

Threads: Maximum Numbers

    1.   nthreads.java

  -   How many java threads can your computer create before crashing? Click "Press Me" to find out. When out of memory the code attempts to shut down all threads by terminating their loops. It attempts to identify each thread that terminates by placing its identity in the JTextArea. This may not work due to a lack of resources. In that case, just move to another page and the applet will terminate with all the threads.