Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Machine > Re: is it possi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 768 of 803
Post > Topic >>

Re: is it possible to run JVM in a pthread?

by Daniel Pitts <googlegroupie@[EMAIL PROTECTED] > Apr 26, 2007 at 10:48 AM

On Apr 25, 10:57 pm, "Charles T. Smith" <cts.priv...@[EMAIL PROTECTED]
> wrote:
> Does anyone know if it's possible to run a JVM in a pthread?
>
> Are there obstacles to doing that, like requirements for non-thread-safe
> api's?
>
> How about performance, if you have hundreds of such threads?  Has anyone
> experience with that?  Would it necessarily be less efficient that
> hundreds of java threads?  Or more efficient?

pthreads are POSIX threads, right?  What dodes that have to do with
running the JVM?

Modern JVMs can use platform specific (a.k.a native) threads, or green
threads of necessary.  "What is the efficiency for a number of
threads?" is a trick question.  It depends on a lot of factors,
including number of CPU cores, platform, what the threads are doing,
amount of available memory, etc...

If you really want to know more about concurrent programming, I
recommend the book Java Concurrency In Practice <http://
JavaConcurrencyInPractice.com/> It tells you all you need to know
about thread-safety and the thread safety of common Java API's, as
well as creating your own efficient multi-threaded programs.

Hope this helps,
Daniel.




 4 Posts in Topic:
is it possible to run JVM in a pthread?
"Charles T. Smith&qu  2007-04-26 07:57:54 
Re: is it possible to run JVM in a pthread?
Daniel Pitts <googlegr  2007-04-26 10:48:36 
Re: is it possible to run JVM in a pthread?
Eric Sosman <Eric.Sosm  2007-04-26 14:03:00 
Re: is it possible to run JVM in a pthread?
"Charles T. Smith&qu  2007-04-27 21:39:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 6:27:07 CDT 2008.