Some bad idea

I know IT IS bad idea to post something twice. But... I'd like answers... and this is java game development.
I need little cross platform compare
I need to know differinces between computers and operating systems. You should write: (no need for precise numbers ^_^)
System: (Windows 98)
Processor: (300 celeron)
Memory: (220)
swap: (big/low)
Last number on default configuration: (911)
in less than 15 minutes
Last number on special configuration more than 1500
If it will take more than 2 hours to finish, please write down last number and stop this.
If you could do this, you would be very helpful.
It is not some kind of easy program so you could save me form some mistakes after year of programing.
public class thread{
threa[] th1;
public static int a1;
public static void main(String[] args){
threa th1[]= new threa[10000];
for(int a2=1;a2<10000;a2++){
a1=1;
for(int a3=1;a3<a2;a3++){
th1[a3]=new threa();
a1=0;
System.out.println("passed "+a2);
class threa extends Thread{
public static int a1;
public void run(){
if (a1==0){return;}
And some type of speed tests would be nice too...

System: (Windows NT)
Processor: (733 pIII)
Memory: (512)
swap: (1 GB)
ok your code blows up at iteration 900 odd with an OutOfMemoryError.
so first i changed it to do 900 iterations...
the time in milliseconds = 9203
than i changed it to do 1500 iterations and i set a maximium heap size of 1 gig
the time in milliseconds = 25927
than i set a maximum heap size of 1 gig and an intial heap of 500 megs
the time in milliseconds = 19058
here is how i modified you code to capture the time...
public static void main(String[] args){
  threa th1[]= new threa[10000];
  Date startTime = new Date();// added this
  for(int a2=1;a2<1500;a2++){
    a1=1;
    for(int a3=1;a3<a2;a3++){
      th1[a3]=new threa();
    a1=0;
    System.out.println("passed "+a2);
  Date endTime = new Date();// this
  System.out.println(endTime.getTime()-startTime.getTime());// and finally this

Similar Messages

  • Want to have some beginners idea.

    Hi all,
              I want to have some beginners idea in BAPI BADI
    in a very simple language with analogies so that it will be helpful to understand.
              Not with high technical jargons.
              Experts pls help me out.
      With regards,
       Abir.

    Hi,
    BAPI :- is similar to function module. they do some specific task related to business objects.
    they no difference in the functinality of BAPI & Function Module.
    BADI:- Business addins . They higher version of user EXITS. They provide better way to enhance standard screen. they help in adding addtinal functionality for existing application.
    Usefull Links
    BADI Link
    http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://members.aol.com/_ht_a/skarkada/sap/
    http://www.ct-software.com/reportpool_frame.htm
    http://www.saphelp.com/SAP_Technical.htm
    http://www.kabai.com/abaps/q.htm
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.planetsap.com/download_abap_programs.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    BAPI-step by step
    http://www.sapgenie.com/abap/bapi/example.htm
    Mark Helpfuul Answers
    Regards
    Message was edited by: Manoj Gupta

  • Distributed encoding of referenced movies --bad idea?

    Distributed encoding of referenced movies (using Compressor) --is this a bad idea? If you do this routinely and it works for you, please let me know.
    Thanks,
    Cris

    Nebraska,
    Thanks for your reply. I am trying a home network to see if I can cut down my encoding time and increase my capacity on existing equipment. What I have is outlined in "other details" below. Because of the limitations, I am putting highest priority on trying to find out what has been causing problems with my real time mp2 transcoder nor recoginizing some Quicktime files and consider the Qmaster distributed processing for batch processing files for web streaming. For now, thtis will have to do.
    I see the sense of having a dedicated server for the source footage. But I need to do things peer to peer. I use to oversee a WinNT server years back. Its been awhile. Do you would log into each of your G5 quads as the same domain user (or Mac OSX server equivalent)? Is one of your G4's (not the server) the controller? Is the same machine both controller and client?
    For the referenced movie I tried, it took many many hours --at least several times longer than if I did the job on a single machine. However, that was when I only had a cluster of two. I might try again with three.

  • MBPR w/Hard Case = Good or Bad Idea?

    I am the happy owner of a new MBPr 15" and like many other owners am keen on protecting my investment. The first thing that came to mind was to outfit it with a hard case and being a detail guy I researched the topic online. Turns out many are saying that a hard case is NOT a good idea for the following two good reasons:
    extra weight on the screen wears down the hinges which can lead to a very expensive screen replacement.
    overheating/heating issues even with hard cases that have cutouts for vents that can cause permanent damaged to the battery and internal components.
    Apple sells the hard cases in their stores and it seems that they are divided on the answer with some "Genius" bar employees saying hard cases are not good and others suggesting them to protect your MacBook Pro. Hard case companies are of course saying that their products are safe to use (the contrary would seriously jeopardize the sale of their product). I have asked Apple and leading case/accessory maker Moshi to comment on this issue and will post their replies in this thread.
    My goal is to pool the statements, experiences and opinions on the subject to make it definitely clear once and for all if hard cases are indeed a bad idea to protect your Retina MacBook Pro. Do you have anything to say or share?

    The general rule of thumb is that sample-instrument samples should be stored on a separate drive. This is particularly crucial if you're streaming samples from disk (EXS with "virtual memory" on, or DFD (direct from disk) as found in other sample-based plugs).
    And you'll want to record audio on a separate drive as well, never on your system drive (except in a pinch) if you can help it.
    For a laptop, the ideal system would be to have separate external drives for audio recording and samples. If you're working on a tower/desktop model, these additional drives can be exclusively external drives or a combination of internal and external drives.
    My system:
    • Lacie 250G (video playback) FW400
    • Glyph 250G (sample storage #1) FW400
    • OWC 350G (sample storage #2) eSATA (via eSATA PCI-e card)
    • Maxtor 500G drive (audio recording/project drive) -- internal
    Works very nicely!

  • Is it my imagination, or is this a bad idea? NTFS external as a Mac drive

    I've always heard NTFS and Mac's didn't get along too well.
    Today I found out that Seagate is selling NTFS drives as "Mac" drives. Here's a link to their spec sheet:
    http://www.seagate.com/www-content/product-content/backup-plus-fam/backup-plus-d esk-mac-v2/en-us/_amer/docs/backup-plus-desk-mac-v3-ds1759-6-1312us.pdf
    Am I crazy or does that sound like a really bad idea.
    I keep reading about all the "problems" with external drives and Mavericks and everyone is blaming the OS,which now has me wonderiing just exactly what other stunts some of these drive makera are pulling.
    Better yet, why can't Seagate format the drive in an HFS format and sell it like that. IMHO this almost makes no sense!

    Mac OS X can read NTFS drives, but cannot write to them without third-party drivers. So unless for some reason you need the drive as NTFS for use with Windows systems, in which case I'd recommend ExFAT rather than NTFS, then yes, it's a bad idea. If you get a drive formatted as NTFS and you will use it only with a Mac, just reformat it to Mac OS Extended (Journaled).
    As to why Seagate does that, I'm sure it's because they sell far more aftermarket drives to Windows users than they do to Mac users, so they choose the format that will suit the majority of their customers.
    Regards.

  • Bank is offering to increase my credit limit on 2 credit cards - good or bad idea?

    My bank is offering to increase my credit limit on 2 credit cards.I have an excellent credit score, and already have more than enough credit limit available on my credit cards.I know that a higher limit would make for a better credit score when there is some debt on the cards.HOWEVER - What I'd like to know:Is it ever a bad idea to accept a credit limit increase offer from a bank / credit card issuer?Also - Can a too high of a credit limit affect ones ability to get a mortgage or other loans?  Thanks!

    SeattleGuy1968 wrote:
    My bank is offering to increase my credit limit on 2 credit cards.I have an excellent credit score, and already have more than enough credit limit available on my credit cards.I know that a higher limit would make for a better credit score when there is some debt on the cards.HOWEVER - What I'd like to know:Is it ever a bad idea to accept a credit limit increase offer from a bank / credit card issuer?Also - Can a too high of a credit limit affect ones ability to get a mortgage or other loans?  Thanks!Depends how much debt we're talking about, 1% is still basically 1% even increasing your aggregate CL massively.  Doesn't matter for FICO if your balances aren't there, might matter for Vantage Score if you care about such things. As for a bad idea, no not really unless some future lender figures you're overextended.  Personally I don't limit chase just to limit chase, there are certain cards I want a high limit on (travel card, default spend card, and balance carrying cards to be explicit), and others such as my Freedom at 1K I couldn't care less what it was as I only use it for 5% rewards and it'd be rare for me to get a >1K purchase other than maybe Amazon during the holidays. Limits are irrelevant for mortgages and most other loans, the key there is your FICO score and your DTI ratio, and there the minimum payment amount counts, not the potential maximum. FWIW in the current market there's people with 4-5X their income in card limits on this forum, that may not be a fantastic idea for most people, but current market doesn't really matter and as such I'd probably accept them personally.  There are some people who chase credit card signup bonuses, and for those, limiting their current amount of available credit might sway an underwriting decision in their direction, and as such they might wish to decline, I just haven't ever done that... yet at least .

  • Storing files on top level a bad idea?

    Hi all,
    I was wondering if there is any problem with storing files on the top level of my Mac, the level that has the Applications, System, Library and Users folders. I know some apps will have issues if they or their components are installed here, but is this generally a bad idea?
    Thanks.

    is this generally a bad idea?
    No, but some backup software programs may not see them if they're put there. If you have more than one user account on the computer, the other accounts may not be able to save changes to them.
    (42205)

  • Is it a bad idea to use Task.Delay() in a polling function?

    Is the following a bad idea considering the expense of Task.Delay()?
    async void WatchDog()
    while(!bDisposed)
    //check some things
    await Task.Delay(100);
    Hong

    I've not used the DispatcherTimer, so I can't say anything from experience about how efficient it is or not. The few times I needed this sort of functionality in the few WPF apps I've done, I've used Task.Delay() ... I agree that it is certainly
    a handy option. Most of my polling-type of work has been in non-UI situations (Windows Services), creating my own threading (and using Thread.Sleep()).
    Ah, WinRT ... didn't know that was the platform you're writing for.
    I've got no experience with WinRT. I don't know if there's a separate MSDN forum for that, the only thing I could find was a forum for Surface (https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=surfaceappdevelopment),
    but I don't know if posting questions there would help you or not. Probably the WPF forum would work just as well (https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wpf).
    ~~Bonnie DeWitt [C# MVP]
    http://geek-goddess-bonnie.blogspot.com

  • Transfer Hard Drive from 20" iMac to 27" iMac - Good or bad idea?

    I've just bought my wife a new 27" iMac to replace her 20" iMac. To keep things simple I'd rather just take out the drive in the 20 and put it in the 27. Anyone try this and is there any reason why it wouldn't work since the OS is "universal" for these recent machines?
    The reason I don't want to just run with a fresh install (which is what I would prefer to do) is that it's my wifes computer and then she'd have to start new with all her settings etc. While I think the migration asst is a great feature, i've also had other issues doing that that leaves a bit of a mess behind it and some permissions got screwy once.
    I may just give it a go and see if it works right away. I'd prefer not to spend lots of time "transferring" files, data, prefs between the old/new machines and just get up and running quickly since her 20" OS install is working great.
    Thoughts?

    LawrenceT,
    Welcome to Apple Discussions.
    *Very bad idea if you intend to use the OS that is on the 20" machine in the 27" machine for a number of reasons*. First you will void your 27" machines warranty and if the 20" has any left it's gone too. Next is you will run into problems with the 27" because the 20's OS is set up for that machine which has totally different specifications. What is wiser is to use Migration Assistant and simply move everything over, this is done when you intially turn on the new machine it will prompt you. If you have already set up the 27" then you can still run Migration Assistant. Just open the application and it will walk you through the process. If you have trouble finding MA simply open Spotlight (upper right corner icon that looks like a spyglass) and type in Migration Assistant.
    Regards,
    Roger

  • TS1702 New i phone maps, is backwards, there is no way you can use this app now. bad idea to launch something without doing more research.

    this app you cannot use now, bad idea before releasing it.

    It takes two sides to agree, I seriously doubt it was ever going to happen. Or they have demanded some outlandish amounts as they are trying to do with Motorola Mobility patents.
    I honestly don't think there is anything wrong with the app, there is a lot wrong with the geobase from TomTom. And I'm sure it will be fixed, just like Google Maps was. Do you remember when it was first released?

  • Is it a bad idea to use NVIDIA's "reference driver"?

    Boot Camp set up my iMac with NVIDIA GeForce GT 640M graphics card with driver version 332.28.  NVIDIA has a "reference version" of 334.89.  Since the 640M is of course a mobile chipset they do not provide drivers for it (I never understood why this was) but rely on the manufacturer however they now apparently put out these "reference drivers".  Do you think this is worth a shot?  Has anyone tried them?

    No, it's not a bad idea.
    I heard that in the past years Apple locked the driver from easy updating, but now you can just update as with every other PC.
    For exampe, with Apple stock driver (as of early 2013, I have the GT650M) Battlefield says that I could have problem.
    I always updated and everything worked fine (even if I had a lot of problem with Boot Camp and Windows).
    The update mantains the overclock of the card (as some cards are overclocked by Apple).
    Sorry for my english.

  • Is it a bad idea to use Time Capsule to access my iTunes music?

    I'm thinking about putting all of my music on my time capsule and making iTunes access it through that.
    Is this a bad idea for any reason? I'm thinking that there could be a few seconds of delay when playing a song or something, which I don't really mind.
    The other thing I thought is that this could be bad because if my Time Capsule fails, then I lose my music, whereas if I store my iTunes music folder on my computer, it will be backed up by Time Machine, and therefore be in 2 safe locations instead of 1.
    Anybody have any thoughts/suggestions?

    Csound1 wrote:
    Roger Wilmut1 wrote:
    Csound1 wrote:
    That was going to be my riposte,
    You should have posted your riposte post-haste, not post- the posted riposte post that just passed.
    There you go again, my head spins
    But who is on third!?!?!?!?!!?!?!?!?

  • I had to replace my hard drive twice in my power mac g5. Luckily, I had the foresight to install a backup drive the second time around. Has anybody had HD problems? Is it the Power Mac or I just lucked out on some bad drives.

    I had to replace my hard drive twice in my power mac g5. Luckily, I had the foresight to install a backup drive the second time around. Has anybody had HD problems? Is it the Power Mac or I just lucked out on some bad drives.

    Hi Leon,
    There are many well known G5 problems, but being hard on Hard Drives is not one of them.
    How old & what brand/model drives were they?

  • Hi guys. gota 2010 mac mini but want to upgrade so i can stream from mac mini to apple tv. but some herd some bad reviews about os x moutain lion. any of it true?? to mountain lion

    hi guys. gota 2010 mac mini but want to upgrade so i can stream from mac mini to apple tv. but some herd some bad reviews about os x moutain lion. any of it true?

    Mountain Lion is the best OS yet, IMHO.

  • When I upgraded to ios6 (Bad idea!)  I lost my pictures,  how can I restore them?

    When I installed iOS 6 (bad idea,). I lost all pictures.  How can I restore them?
    Aamunrud

    assuming you didn't/don't use photostream I need a couple things cleared up first... did you back up your phone before updating to iOS 6 and if you did, was it on a PC or Mac?

Maybe you are looking for

  • How do I set up multiple address books

    My husband and I use the same computer and want seperate address books while using the same account. How can we accomplish this?

  • Need help please. Flash player 5 with itunes

    i have an old disc that runs on flash player 5 how do i import it into itunes.. thank you

  • Flash CS3 - Can't get "snapping to" when using Guides.

    I always used guides in Photoshop for years. Ive used them extensively to center graphics and keep multiple graphics balanced and centered. After upgrading to CS3, it seemed that guides stopped working in Photoshop, as well as today in Flash - I was

  • How to change author/seller on a single APP

    Dear collegue I have just published my first digital magazine for iPad. I'm a Creative Cloud subscriber and that was a single APP, so the author and seller that appear is my name. There is any possibility to publish these single app with my account b

  • Open winmail.dat files?

    Anyone know how to open winmail.dat files?  I've been getting email attachments which I can't open on my MBP.