Re: Instant Chat System for 1000 simultaneous clients



RedGrittyBrick wrote:
The method is Thread() and the procedure to create 1000 of them is

That's not a method, that's a constructor.

Thread[] threads = new Thread[1000]
for (int i = 0; i < threads.length; i++) {
threads[i] = new Thread();
threads[i].start();
}
// ;-)

http://java.sun.com/docs/books/tutorial/essential/concurrency/

http://www.google.com/search?q=chat+server

--
Lew
.