my dog learned polymorphism*
The moose likes Java in General and the fly likes Is it possible to Start two threads at a  time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Is it possible to Start two threads at a  time" Watch "Is it possible to Start two threads at a  time" New topic
Author

Is it possible to Start two threads at a time

Rajendra Prakash
Ranch Hand

Joined: Sep 10, 2009
Posts: 293
Can we start two threads at a time . If so what will happen .will it throw any error
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3056
    
  33

Yes you can start any number of threads. But you cannot start the same thread again. You could have tried a small program that would start 2 threads.


Mohamed Sanaulla | My Blog
 
 
subject: Is it possible to Start two threads at a time
 
Similar Threads
How comes the inconsistence ?
Experimenting with "volatile"
Thread name
Standard way of using Linux command using java
Where is the Context Switch Effect in Java?