News for hackers. Stuff that matters.
Re:Multi-tenant Java 8 VM in beta by raverbashing on Thursday September 19, 2013 @04:36AM (#6410530)
Or, to be more specific, what are the differences between thread handling under Linux and Windows regarding to the JVM?

Threads in Linux (in general) are separate process that share memory space, in Windows it's different and they're "threads" being scheduled under a parent process.

Re:Multi-tenant Java 8 VM in beta by nl on Thursday September 19, 2013 @04:52AM (#6410574)
This doesn't answer your question, but I suspect you may have a hazy recollection of something called "green threads"[1]. Green threads existed in early versions of Java (Java 1.1 and below) back in the days when operating systems had trouble with spawning large numbers of threads from a single application.

In the Java 1.1 & Linux 2.0 days you could get better Java performance by using green threads. That didn't last long, and around the time Java was being used for server-side applications it had mostly switched over to native threads.

So far as your actual question goes: There is little difference between the Java threading implementation on Linux & Windows.

[1] http://en.wikipedia.org/wiki/Green_threads#Green_threads_in_...

Re:Multi-tenant Java 8 VM in beta by barrkel on Thursday September 19, 2013 @05:14AM (#6410633)
I think it's just an ontological issue, as well as Linux having more flexibility in what a process can share with its parent (via clone() flags).

The Linux scheduler schedules processes; the Windows scheduler schedules threads. Via clone(), Linux can create a process that shares almost everything with its parent, and thereby looks mostly like a Windows thread.

With regards the JVM, there is little difference in this specific respect. The sync primitives available on each platform are a bit different though, as well as things like signals.

Re:Multi-tenant Java 8 VM in beta by teraflop on Thursday September 19, 2013 @04:40AM (#6410546)
What's the difference? In both cases, threads have their own stacks but share the rest of their address space. Is there a distinction other than terminology?
Re:Multi-tenant Java 8 VM in beta by raverbashing on Thursday September 19, 2013 @04:56AM (#6410591)
Ah apparently not so much http://stackoverflow.com/questions/3237701/do-threads-create...

But I would say you would have definitely to watch for a) thread creation time and b) thread priorities (but for most of the applications these are not a problem)