Java General - Creating a New Thread
Interview Question Database For Software Developers
|
|
| Creating a New Thread | | How to create a thread in a program? | | By: FYIcenter | You have two ways to do so. First, making your
class "extends" Thread class.
Second, making your class "implements" Runnable
interface.
Put jobs in a run() method and call start() method to
start the thread.
| | ID: 107 | Rank: 80717 | Votes: 24741 | Views: 55841 | Submitted: 20091018 |
1610 :-) | | Multi-Threading | | How does multi-threading take place on a computer with
a single CPU?... | | Submitted: 20070303 |
|
Copyright © 2009 FYIcenter.com
All rights in the contents of this Website are reserved by the individual author.
No part of the contents may be reproduced in any form without author's permission.
|
|
|