Re: Instant Chat System for 1000 simultaneous clients
- From: Lew <lew@xxxxxxxxxxxxx>
- Date: Tue, 15 Apr 2008 23:55:51 -0400
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
.
- Follow-Ups:
- Re: Instant Chat System for 1000 simultaneous clients
- From: RedGrittyBrick
- Re: Instant Chat System for 1000 simultaneous clients
- References:
- Instant Chat System for 1000 simultaneous clients
- From: anshul saprey
- Re: Instant Chat System for 1000 simultaneous clients
- From: Roedy Green
- Re: Instant Chat System for 1000 simultaneous clients
- From: anshul saprey
- Re: Instant Chat System for 1000 simultaneous clients
- From: RedGrittyBrick
- Instant Chat System for 1000 simultaneous clients
- Prev by Date: Re: Instant Chat System for 1000 simultaneous clients
- Next by Date: Re: Instant Chat System for 1000 simultaneous clients
- Previous by thread: Re: Instant Chat System for 1000 simultaneous clients
- Next by thread: Re: Instant Chat System for 1000 simultaneous clients
- Index(es):