![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() |

|
| Programming tutorials All Knowledge Info and links to posted here |
![]() |
|
Java: Threads
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Administrator
Posts: 876
Join Date: Oct 2005
Rep Power: 10
IM:
|
simply copy the 2 code segments and replace the //thread code with your desired code to thread. //private Thread class: private class ThreadMyProg implements Runnable{ public void run(){ //thread code } } //how to call this class and run it: ThreadMyProg aThread = new ThreadMyProg(); new Thread(aThread).start(); /* this code is generated dynamically, but stores a single copy of the thread class to be re-used upon it's need, you can take this a step further and implement a stack to create multiple copies of this method, thus taking advantage of threads to the fullest.*/ |
|
|
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PDF to Tiff SDK(10+threads) Client License 3.5 | Cybershot | Application Downloads | 0 | 28-Feb-2008 03:42 AM |
| PDF to Image SDK(10+threads) Client License 3.5 | Cybershot | Application Downloads | 0 | 28-Feb-2008 03:42 AM |
| PDF to Tiff SDK/COM(10+threads) Server License 3.5 | Cybershot | Application Downloads | 0 | 28-Feb-2008 03:36 AM |
| Java JDBC Tutorials - Topics include Java, Database, JDBC, Driver, ODBC and more! | Anilrgowda | Graphic tutorials | 0 | 04-Sep-2007 01:02 AM |
| The Javalog.txt file is created in the Windows\Java folder when Java logging is enabl | Anilrgowda | Microsoft windows vista error | 0 | 29-Jan-2007 10:09 AM |