Results 1 to 5 of 5
Thread: Thread.start()
- 01-20-2011, 07:14 AM #1
Member
- Join Date
- May 2010
- Posts
- 90
- Rep Power
- 0
- 01-20-2011, 07:25 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,385
- Blog Entries
- 7
- Rep Power
- 17
That's the way it was designed; Threads are like Sockets: if a client has closed its socket the server is left with a useless socket; it can't go "Hey, accept method, use this socket again when a client wants to connect". It's more 'pure' in an OO way: suppose a Thread could be started again: it would be some sort of zombie because it had died before; it is acting as if it were another, brand new Thread. It is much easier to start a new thread (much less bookkeeping)
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 01-20-2011, 07:51 AM #3
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
And much less shooting and zombie-phobia chaos. ;-)
- 01-20-2011, 07:59 AM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,385
- Blog Entries
- 7
- Rep Power
- 17
- 01-20-2011, 08:51 AM #5
Member
- Join Date
- May 2010
- Posts
- 90
- Rep Power
- 0
Similar Threads
-
Start Swing GUI program by Java Web Start with IE in Eclipse debug mode
By albertkao in forum EclipseReplies: 1Last Post: 01-18-2011, 06:27 PM -
Procedure to start Thread?
By greatmajestics in forum Threads and SynchronizationReplies: 2Last Post: 04-23-2010, 05:05 PM -
How do you start a Java program from the "Start" menu under Windows?
By ScottVal in forum New To JavaReplies: 5Last Post: 03-20-2009, 10:04 PM -
My thread will not start
By markyoung1984 in forum Threads and SynchronizationReplies: 4Last Post: 10-03-2008, 06:32 PM -
OutOfMemoryError: Unable to Start New Native Thread
By edwin11 in forum Advanced JavaReplies: 0Last Post: 11-16-2007, 01:47 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks