Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it possible to use Java's multi thread in a single thread environment(OS)  RSS feed

 
Dhineshkumar raj
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We know that Java supports built in multi thread environment.
consider a particular OS supports only single thread environment.
In this type of OS, is it possible to use Java's Multithread.
Did you understand what am saying??

In a single thread environment(which supports by OS) is it possible use Java's multi thread??

Regards
Dhinesh
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If there is a JVM available for such an OS which fully implements the Java SE specifications, then yes, you can use multithreading - otherwise it would not be a complete Java SE JVM. See green threads.
 
Rob Spoor
Sheriff
Posts: 21092
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to be safe, make sure you don't mix up single threaded and containing a single processor. An OS running on a machine with only one processor can still run multiple threads. They just may not be executing at the exact same time, although the alternation is usually so fine grained you won't even notice.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!