Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #3391 > unrolled thread

Re: Instant Chat System f

Started by"Lew" <lew@THRWHITE.remove-dii-this>
First post2011-04-27 15:44 +0000
Last post2011-04-27 15:44 +0000
Articles 3 — 2 participants

Back to article view | Back to comp.lang.java.gui

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Instant Chat System f "Lew" <lew@THRWHITE.remove-dii-this> - 2011-04-27 15:44 +0000
    Re: Instant Chat System f "RedGrittyBrick" <redgrittybrick@THRWHITE.remove-dii-this> - 2011-04-27 15:44 +0000
      Re: Instant Chat System f "Lew" <lew@THRWHITE.remove-dii-this> - 2011-04-27 15:44 +0000

#3391 — Re: Instant Chat System f

From"Lew" <lew@THRWHITE.remove-dii-this>
Date2011-04-27 15:44 +0000
SubjectRe: Instant Chat System f
Message-ID<S6-dnXX8csJa5ZjVnZ2dnUVZ_oPinZ2d@comcast.com>
  To: comp.lang.java.gui
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

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [next] | [standalone]


#3392

From"RedGrittyBrick" <redgrittybrick@THRWHITE.remove-dii-this>
Date2011-04-27 15:44 +0000
Message-ID<4805b7b3$0$26088$db0fefd9@news.zen.co.uk>
In reply to#3391
  To: comp.lang.java.gui
Lew wrote:
> RedGrittyBrick wrote:
>> The method is Thread() and the procedure to create 1000 of them is
> 
> That's not a method, that's a constructor.
> 

Poetic license.

-- 
RGB

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#3393

From"Lew" <lew@THRWHITE.remove-dii-this>
Date2011-04-27 15:44 +0000
Message-ID<0P2dnbZ2a4dyfpjVnZ2dnUVZ_qainZ2d@comcast.com>
In reply to#3392
  To: comp.lang.java.gui
RedGrittyBrick wrote:
> Lew wrote:
>> RedGrittyBrick wrote:
>>> The method is Thread() and the procedure to create 1000 of them is
>>
>> That's not a method, that's a constructor.
>>
> 
> Poetic license.

In that sense, yes, you are correct.  After all, constructors are very 
method-like.  In some ways.

Overrides, said my instructor,
are dangerous in a constructor,
if you call on the one
before the other is done,
you just might find that it f**ked 'er.

I had my poetic license revoked.

-- 
Lew

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web