Yeah,
Good call. I created a Python program with threads and it
showed up as
multiple processes.
import threading
class test(threading.Thread):
def run(self):
for i in xrange(100000000):
continue
print "this is a test"
t = test()
t.start()
t1 = test()
t1.start()
Java does create internal threads when it starts even for
simple
programs like "Hello World".
This is what I must have been seeing.
--Brian
Brian Kirsch - Cosmo Developer / Chandler
Internationalization Engineer
Open Source Applications Foundation
543 Howard St. 5th Floor
San Francisco, CA 94105
http://www.osafoundation
.org
Jared Rhine wrote:
>Brian Kirsch wrote:
>
>
>>FYI,
>>I tried doing the same experiment on qacosmo with a
Python version of my
>>Java test class:
>>
>>
>>for i in xrange(1000000000):
>> continue
>>
>>for i in xrange(1000000000):
>> continue
>>
>>print "this is a test"
>>It only used one process!
>>
>>So it would seem this is something related to Java
JVM's on qacosmo
>>since both the Sun JVM and Jrockit JVM displayed the
>>multi-process spawning behavior.
>>
>>I am also cc'ing Jared to see if he might have any
suggestions.
>>
>>
>
>Sounds like y'all might be seeing threads as processes
as some ps commands
>are prone to do. I do forget the details on why that
happens in some
>configurations.
>
>Brian, you want to try a python test that threads? Does
that create
>multiple "processes" as well?
>
>We can all imagine that Java has 9 threads open?
>
>
_______________________________________________
cosmo-dev mailing list
cosmo-dev lists.osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/cosmo-d
ev
|