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: 90836 | Votes: 38871 | Views: 51225 | Submitted: 20070303 |
976 :-) | | Multi-Threading | | How does multi-threading take place on a computer with
a single CPU?... | | Submitted: 20070303 |
|
Copyright © 2008 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.
|
|
|