| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
Java is a virtual machine, which interprets and compiles your code at run time to make it run on whatever hardware you are using. You can take the .class file you generated and run that exact same binary, on any of dozens of different computers and it will work on all of them. The .a (or .exe) file you generated with the C program will run only on the specific CPU/O/S combination you targeted with your compiler. That's most of the reason. The other part of the reason is that Java has features, like garbage collection, that C does not. A lot of those threads are there to provide those features, even if you aren't taking advantage of them. A more reasonable comparison would be to compare Java to C# on .NET, or Perl, or Python, or Ruby, etc. Also, the next JDK, 1.7 is supposed to be a lot smarter about loading only stuff you actually need, which will probably make a big difference in special cases like this test. -Joshua On Nov 30, 2007, at 12:27 PM, Majd Kokaly wrote: Greetings, |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden This email sent to email@hidden
| References: | |
| >Large usage of RAM in java (From: Majd Kokaly <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.