No, you can’t. Calling run will execute run()
method in the same thread, without starting new thread.
More Related Contents:
- What’s the difference between Thread start() and Runnable run()
- Why must wait() always be in synchronized block
- ExecutorService that interrupts tasks after a timeout
- Volatile vs Static in Java
- When would you call java’s thread.run() instead of thread.start()?
- Why use a ReentrantLock if one can use synchronized(this)?
- Java Executors: how can I set task priority?
- What are the main uses of yield(), and how does it differ from join() and interrupt()?
- What are the advantages of using an ExecutorService?
- Volatile variable in Java
- What is the JVM thread scheduling algorithm?
- How do I implement task prioritization using an ExecutorService in Java 5?
- Why does Thread.isInterrupted () always return false?
- Impossible to make a cached thread pool with a size limit?
- When should I use a CompletionService over an ExecutorService?
- How does `this` reference to an outer class escape through publishing inner class instance?
- Are non-synchronised static methods thread safe if they don’t modify static class variables?
- Forcing multiple threads to use multiple CPUs when they are available
- ThreadPoolExecutor Block When Queue Is Full?
- Java ExecutorService: awaitTermination of all recursively created tasks
- Why does Java not see the updated value from another thread?
- What is adaptive spinning w.r.t lock acquisition?
- Which concurrent Queue implementation should I use in Java?
- Jboss Java EE container and an ExecutorService
- Thread Confinement
- How can I wrap a method so that I can kill its execution if it exceeds a specified timeout?
- Java, divide incoming work uniformly via hashing in multithreaded evnironments
- LinkedBlockingQueue vs ConcurrentLinkedQueue
- Does a breakpoint halt all threads?
- Are 64 bit assignments in Java atomic on a 32 bit machine?