Differences between System.gc() and Runtime.gc() ?

differences between System.gc() and Runtime.gc() ?

None!
P.S. I have only found one reason to use System.gc(). For some obscure reason it seems that if one invokes System.gc() when a Swing application is about to be iconized it substantially reduces the delay experienced when de-iconizing the application!
Several reasons for this have been suggested but I have found none that really explain why it works but it does work!
Edited by: sabre150 on Sep 28, 2007 10:23 AM

Similar Messages

  • Difference between System.err and System.out

    Hi Everyone !!!
    I could see that System.err is printing an output on the screen as like the System.out.
    I can't understand what is System.err.
    Can anyone explain me the difference between System.out and System.err

    System.out.println -> Sends the output to a standard output stream. Generally monitor.
    System.err.println -> Sends the output to a standard error stream. Generally monitor.
    To find the difference execute the following program and see the output. You will see how those streams can be handled differently.
    public class test
    public static void main(String args[])
    System.out.println("Standard output Stream message");
    System.err.println("Standard error stream message");
    Compile the class.
    Run the class
    First Execution -
    java test
    Standard output Stream message
    Standard error stream message
    Second Execution -
    java test >op.txt
    Standard error stream message
    In second execution we diverted only the std output stream and std err stream remained unchanged. i.e., by this way, we can handle error stream separately.
    Another typical use of this stream is to produce log or debug messages at runtime and are diverted them to a file where they are archived for later use.<img class="emoticon" src="images/emoticons/shocked.gif" border="0" alt="" width="16" height="16" />

  • The difference between system restore and last good known configuration

    hi,
    what is the difference between system restore  and last good known configuration.
    in which situation you use system restore ,and in which situation you use last good known configuration.
    very short answer wil be enough.
    thanks
    johan
    h.david

    Last Known Good Configuration deals only with Starting Windows eg. a bad registry or incorrect driver is preventing Windows to start.It recovers the registry settings of HKEY_LOCAL_MACHINE\System\CurrentControlSet
    While System Restore uses restore points to return your system files and settings to an earlier point in time without affecting personal files. Restore points are created automatically every week, and just before significant system events, such as the installation
    of a program or device driver. You can also create a restore point manually.You can undone system restore but there is no such option in Last Known Good Configuration.
    Last Known Good Configuration is disabled in Windows 8 or,Windows 8.1 by default.
    Try using Last Known Good Configuration if you can't start Windows, but it started correctly the last time you turned on the computer.
    Try using System Restore to return the system to an earlier point in time when things worked correctly.
    S.Sengupta, Windows Entertainment and Connected Home MVP

  • Difference between system debugging and update debugging

    hai guru's can any one tell the difference between system debugging and update debugging
    thanx in advance
    afzal

    hi,
    System Debugging
    If you set this option, the Debugger is also activated for system programs
    (programs with status S in their program attributes). When you save breakpoints, the System Debugging setting is also saved.
    Update Debugging
    Update function modules do not run in the same user session as the program that is currently running in the ABAP Debugger.
    These function modules are therefore not included in debugging.
    Only if you select the Update Debugging option can you display and debug them after the COMMIT WORK.
    For debugging tutorial:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/5a/4ed93f130f9215e10000000a155106/frameset.htm
    http://www.sapdevelopment.co.uk/tips/debug/debughome.htm
    http://www.sap-basis-abap.com/sapab002.htm
    <b>Reward points</b>
    Regards

  • Difference between system copy and Remote Client copy?

    Hi,
    Can any body suggest me , What are the major difference between System copy and Remote Client Copy.
    As per my knowledge , Both are different
    1.In system copy  entire data recovered mean copy from Source to target
    2.In Remote client copy All  Client data can't me import if you choose SAP_ALL profile also
          I hope Transaction data and user data can't copied
    Anybody share this Question and Give me some idea about this
    If anybody  give brief explanation that is very gratefull.
    regards,
    Balaram

    Hi,
    System copy will replicate all database from source to target system.
    In remote copy only client in which you are performing the copy will get refresh. Also, remote client copy will be done between systems on same patch level. with SAP_ALL profile you can bring all data in target system including your transactional data.
    Thanks
    Sunny

  • Difference between system status and user status.

    Can someone explain to me the difference between system status and user status in details

    Hi,
    As you mentioned there are 2 status can be maintained for documents like Equipment Master, Notification, Maintenance Order & other important business documents.
    In case, client feels that system status is not enough to capture the details of the object, then user status can be used.
    System statuses will be updated automatically based on business transactions which will be done on SAP.
    For example, once the equipment is created, System status would CRTD (Created). If you install the same to some superior equipment or FL, then status would be INST (Installed).
    If you keeping that equipment in Spare, then for that, you have to maintain separate User Status like AVLB (Available in Stock / Spare) so that through IH08, by using User status, you can the report which is available as spare.
    These user status as per the name, should be updated by the user manually.
    Regards,
    Maheswaran.

  • Exact difference between System status and the user status

    Hi,
    Please tell me the exact difference between System status and the user status .
    how we customize the both in the system
    Thanks & Regards
    Prajith P
    Moderation: Locked. Please, try to find an answer first. See rules of engagement
    Edited by: Joaquin Fornas on Feb 23, 2012 11:14 AM

    Hi,
    As you mentioned there are 2 status can be maintained for documents like Equipment Master, Notification, Maintenance Order & other important business documents.
    In case, client feels that system status is not enough to capture the details of the object, then user status can be used.
    System statuses will be updated automatically based on business transactions which will be done on SAP.
    For example, once the equipment is created, System status would CRTD (Created). If you install the same to some superior equipment or FL, then status would be INST (Installed).
    If you keeping that equipment in Spare, then for that, you have to maintain separate User Status like AVLB (Available in Stock / Spare) so that through IH08, by using User status, you can the report which is available as spare.
    These user status as per the name, should be updated by the user manually.
    Regards,
    Maheswaran.

  • Difference between system refresh and client refresh

    Hi all,
         I have one dout what is the difference between system refresh and client refresh,kindly tell me the answer?
    BR
    krishnamurthy.

    Hi,
    Client is part of a system.
    Client copy :Can happen within a single system(local client copy)  or to other system (i.e b/w systems) .
    Here we have some profiles to extract the data depending on the need.
    System Copy: We are copying the entire system to other system.we get the entire systems data (DB) .
    In both the cases we have to make sure that they are on same application component and are on same patch level.
    Thanks!!
    Edited by: Vani n on Jun 27, 2008 2:45 PM

  • Difference between system log and application

    Hi,
    I would like to know the difference between system log and application log.
    Also when to use which log ?
    Regards,
    Jey

    hi ,
    Refaer the given below link
    [LOGS|Re: Who uses Application Logs?;
    Hopes this helps
    Regards
    Ritesh Jha

  • Difference between system dsn and file dsn

    what is the difference between file dsn and system dsn

    System dsn will always be available in the system (it is saved in the system registry) and it's not depends on who created the dsn, but file dsn will depends on a file, so if somebody else use the system, the file dsn might not be available for this person.

  • What is the difference between "System" buttons and boolean buttons?

    I'm writing a VI with an event structure that allows me to push different buttons to control external instruments, but I found two types of buttons worked: "System" buttons and "Boolean" buttons. On the surface, the functionality seems the same: I can write the VI so that either one works, and they work in the same way, but which one is right?
    Here is a little more info on what I'm doing. I have a case structure that has one "timeout" case, which just measures the position of a movable stage. Another case, if a "system"-type button is pressed, moves the stage to an absolute position. Another case activated by a "boolean"-type button moves the stage to the zero point. I could switch these and it would still work, but I don't understand how the buttons are different.
    Also, right now I'm using the "run continuously" function so that the loop just repeats. Is this the right way to do it? I could put everything inside a loop, and make my own stop button for it. Would that be better? Worse? --> I think I found the answer to my own question: run continuously will stop and start the code at each instance, so a while loop will be better because it doesn't start and stop repeatedly. (True?)
    Thanks,
    Karl
    Message Edited by Karl T. on 03-31-2008 05:43 PM

    Karl,
    You never want to design your program to have to use the run continuously button.  It is more for debugging than anything else.  Using a while loop with your own stop button is the preferred method of doing things.
    The System, 3-D, and Classic Booleans all basically work the same.  The appearance is different.  The System buttons look like your OS buttons that you see on all your other programs.  The 3-D were introduced in LV6 and remain standard across different OS's and are not affected by System color changes or System theme changes.  The classics behave similarly to the 3-D, but they are the older controls that existed prior to LV6 and have been kept for legacy's sake.
    There are arguments for using system controls vs. 3-D controls (I don't think most people use the classic controls much anymore).  So, you really have to make a personal decision as to which you prefer to use.  NI pushes the system controls, but you'll notice there is a large number of controls which are not available in the system pallette.  I have made versions that look like system controls, but they do not automatically update for theme or system color changes.

  • Difference between command line and Runtime.exec()

    Hi all.
    I'm coding some lines to call sqlldr program.
    System info:
    OS: Win2k server
    Java platform: JSK 1.4
    DBMS: Oracle 9i
    I've tested sqlldr in command line and it is OK. But when i call Runtime.exec("sqlldr user/pass@servicename control=mycontrol.ctl")
    the ErrorStream show that: Message 2100 not found,No message file for product=RDBMS ,facility=UL...
    So i had to put a String array which contained "ORACLE_HOME" as the second parameter of exec method. But there's another error appear:
    SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
    ORA-12560: TNS:protocol adapter error
    I checked tnsnames.ora and it's OK. I do the command line again and it's still OK. Why did Runtime.exec("...") method get Error.
    Does Someone solve it for me.
    Thanks so much.

    I'm having the similar/same issue.
    I'm trying to run SQLLdr from JAVA.
    From a command line, it works fine.. From within JAVA, I get..
    SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
    ORA-12640: Authentication adapter initialization failed.
    Did you find a solution to your problem?

  • Difference between Design Time and Runtime

    Hi all, very nice to be here sharing knowledge with each other.
    I wanna share my practical experince knowledge that is ,
    Almost all the properties that can be set at the Design time for any object can also be set at the Run-time using only
    GET_object_PROPERTY and SET_object_PROPERTY.
    In fact, I have posted the same info on some othr place, too.
    Thanx.

    Hi all, very nice to be here sharing knowledge with each other.
    I wanna share my practical experince knowledge that is ,
    Almost all the properties that can be set at the Design time for any object can also be set at the Run-time using only
    GET_object_PROPERTY and SET_object_PROPERTY.
    In fact, I have posted the same info on some othr place, too.
    Thanx.

  • Difference between business service and business system in SLD

    hi all,
    i m very new to XI. can anybody tell me that what is the basic difference between Business Service and Business Systems?
    Is it necessary to use them? and if yes then when to use what?
    Thanx.
    Regards,
    Kunjal......

    Hi Kunjal,
    In SAP XI every system in your landscape with which you are interfacing is defined as Service.
    The service can be your Business service or Business system.
    Generally SAP systems are referred to Business system and you define them in the SLD before you import them.
    The Business service is a logical name referring to any system in your landscape.
    To communicate with any third party application you need to create communication channels which are associated to your service.
    More about this here:
    http://help.sap.com/saphelp_nw04/helpdata/en/7d/6b82cd0d1aef48ab5953524c9cc5b2/content.htm
    Regards
    Vijaya

  • Difference between R/3 and CRM systems

    Hi,
    I want to know difference between R/3 and other systems like CRM, SCM. Shall we need XI to integrate them..
    I think that CRM,SCM are the modules of R/3 is correct..
    What kind of applications they are...
    Thanks,
    RamuV

    Hi Ramu,
    As you said they are R3 Applications only.
    can be connected with the help of XI.
    CRM uses BDOCs but XI can only deal with IDOCs. So when you will be working with BDOCs of CRM, then in CRM you will have to create custom IDOCs for the corresponding BDOCs and then you can have File-IDOC and IDOC-file scenarios working via XI to communicate between your CRM server.
    BestRegards,
    Ramesh

Maybe you are looking for