On Sat, 25 Aug 2012 23:40:38 -0700 (PDT), Peter Cheung
<> wrote, quoted or indirectly quoted someone who said
:
>hi, is fork runs faster then thread in java?
There is obviously less overhead with a new thread than forking off a
new process. A thread shares the same pool of objects. A fork has
its own JVM and pool of objects. Forking is usually to code you had
nothing to do with writing or that is written in other languages.
Threads are when the piece of work to do is quite small or needs
access to your object pool.
--
Roedy Green Canadian Mind Products
http://mindprod.com
A new scientific truth does not triumph by convincing its opponents and making them see the light,
but rather because its opponents eventually die, and a new generation grows up that is familiar with it.
~ Max Planck 1858-04-23 1947-10-04