Whats the difference between System.exit(99) & System.exit(-1)

Whats the difference between System.exit(99) & System.exit(-1)

At least on Linux and Solaris systems the difference is important:
exit(0) : successful termination of the program.
exit(n) called with a value 0 < n < 128 :
program terminated with an error. The values in use should be
described in the program's documentation
exit(n) called with a value 128 <= n <= 255 :
Some system event occured (e.g.: program terminated by a signal).
On a Solaris SPARC nachine you will find the following helpful macros in the file
/usr/include/sys/wait.h:
#define WIFEXITED(stat) ((int)((stat)&0xFF) == 0)
#define WIFSIGNALED(stat) ((int)((stat)&0xFF) > 0 && \
(int)((stat)&0xFF00) == 0)
#define WIFSTOPPED(stat) ((int)((stat)&0xFF) == 0177 && \
(int)((stat)&0xFF00) != 0)
#define WEXITSTATUS(stat) ((int)(((stat)>>8)&0xFF))
#define WTERMSIG(stat) ((int)((stat)&0x7F))
#define WSTOPSIG(stat) ((int)(((stat)>>8)&0xFF))
Best,
Manfred

Similar Messages

  • What's the difference between old SAP appraisal system and the new SAP appraisal system?

    Hi Experts,
    What's the difference between old SAP appraisal system and the new SAP appraisal system?
    Can anyone shed some light please.
    Thanks.

    emgr_update no longer sets or gets the thesaurus from workbench. In 11 all workbench configurations are saved in IFCR configuration directly.
    Hence the thesaurus entry should be added directly in version 11 Workbench as opposed to xml file in older versions.
    And if you want to migrate the changes across environments then import_site script in control directory can be used.

  • Whats the difference between Fatal1ty and Fatal1ty USB heads

    Whats the difference between Fatal1ty and Fatal1ty USB headset? What is the $30 price difference for other than a USB connection?
    Also, what is the advantage to using the USB port?
    Still trying to decide on which headset to buy. I will be using these mainly for gaming and some music. Although i'm not real picky when it comes to music quality. Even considered the HS-1200 wireless. Which headset of these 3 has the best sound quality and better quality?
    Message Edited by iowabucks on 10-20-2008 07:54 AM
    Message Edited by iowabucks on 10-20-2008 08:10 AM

    Any USB sound related item is going to use system resources instead of the non usb version. The non usb version uses the resources of the sound card and not system resources. So you should get cleaner sound with the non usb version.
    But, be aware creatives tech support is not the best in the world. Keep that in mind when buying a product from them.

  • Whats the difference between SM50 and sm38

    HI GURUS
    whats the difference between SM50 and sm38??? job overview and process overview

    hi sharma,
    sm38: intial queueueue Info, information about the request quest queue of the server in question is displayed. The dispatcher forwards each request it receives to a work process of the appropriate type. If all the processes of this type are occupied, the dispatcher stores the request in a queue.
    In the queue info you can see for each work process type:
    ·        The number of requests currently waiting. Usually this should be 0.
    ·        The total number of requests waiting, since the server has been running.
    ·        The maximum number of requests that can be stored in the queue (specified in profile parameter rdisp/elem_per_queue)
    ·        The number of requests written and read since the server has been running.
    sm50: work process dialog steps in user transactions, updates, lock administration, etc.
    this transcatin Choosing Administration
    System Administration  Monitor  System Monitoring
    Process Overview or transaction
    For example, you can monitor processes to determine if the number of work processes in your system is adequate, to assess if the instance is working to full capacity, to gather information for trouble-shooting, or for tuning.
    DIA work process for executing dialog steps in user transactions.
    DIA work process for executing dialog steps in user transactions
    UPD: Update process for making U1 (time-critical) database changes
    UP2: Update process for executing U2 (not time-critical)
    database changes
    ENQ for setting and releasing locks on SAP lock objects
    BTC for executing background jobs
    SPO for spool formatting processes
    regards
    vijju

  • Whats the difference between arrayCollection = null and arrayCollection.removeAll()?

    Whats the difference between arrayCollection = null and
    arrayCollection.removeAll()?

    In arrayCollection = null; statement you're setting this
    reference to null and potentially making it available for garbage
    collection. I say 'this reference' and potentially because, as you
    may know, there might be other references to this array collection
    object that won't be affected by this statement and hence it won't
    be GC'ed.
    arrayCollection.removeAll() says that I want to empty this
    array collection for all the reference that we pointing to it. That
    is, remove all the objects from the collection -- and of course
    make them 'potentially' available for the GC -- the size of the
    array collection would be reduced down to zero and all the
    references would be pointing to a valid but empty collection.
    Hope this helps.
    ATTA

  • Whats the difference between list and lov ?

    Whats the difference between list and lov ?
    i can do the same things with a list what an lov can do .
    infact a list is more better. cause the list doesnt hold/show a range of values, and only has the items value iteself.
    while the lov can get all the values of items depending on the query.
    like
    select ename, job, sal from emp
    will show all the three items values in lov?

    Also, if you're looking in the US store, the prices are:
    - Airport Express (small, no ac) $99 - Has audio out for speaker connection using Airplay. Can share a USB printer only.
    - Airport Extreme (larger, ac) $199 - No audio out, can share a USB printer or hard drive.
    - Time Capsules (2TB, 3TB at $299, $399) - have ac wireless and a backup hard drive for Time Machine which the other Airports do not have.
    Matt

  • What the difference between u0093Valuate GL Account Open Itemsu0094 and u0093Valuate G/

    hi gurus
    What the difference between “Valuate GL Account Open Items” and “Valuate G/L Account Balances”?
    We found out that when we perform valuate GL account Open items there will be reversal done at the same time whereas when we perform Valuate G/L Account Balances there is NO reversal posting even though we hv entered the reversal posting date and Period.
    Pls advise which one we should perform?

    “Valuate GL Account Open Items” are for open item managed accounts including vendor/customer accounts. The valuation is performed for each (open) line items on key date specified.
    "“Valuate GL Balance" is for account NOT managed on Open Item basis but managed in foreign currency. The period balance of key date in foreign currency is valuated. Reversal document can be created by selecting 'Reverse postings' in "Postings" tab.
    Kyoko

  • Whats the difference between these two queries ? - for tuning purpose

    Whats the difference between these two queries ?
    I have huge amount of data for each table. its takeing such a long time (>5-6hrs).
    here whice one is fast / do we have any other option there apart from listed here....
    QUERY 1: 
      SELECT  --<< USING INDEX >>
          field1, field2, field3, sum( case when field4 in (1,2) then 1 when field4 in (3,4) then -1 else 0 end)
        FROM
          tab1 inner join tab2 on condition1 inner join tab3 on condition2 inner join tab4 on conditon3
        WHERE
         condition4..10 and
        GROUP BY
          field1, field2,field3
        HAVING
          sum( case when field4 in (1,2) then 1 when field4 in (3,4) then -1 else 0 end) <> 0;
    QUERY 2:
       SELECT  --<< USING INDEX >>
          field1, field2, field3, sum( decode(field4, 1, 1, 2, 1, 3, -1, 4, -1 ,0))
        FROM
          tab1, tab2, tab3, tab4
        WHERE
         condition1 and
         condition2 and
         condition3 and
         condition4..10
        GROUP BY
          field1, field2,field3
        HAVING
          sum( decode(field4, 1, 1, 2, 1, 3, -1, 4, -1 ,0)) <> 0;
    [pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    My feeling here is that simply changing join syntax and case vs decode issues is not going to give any significant improvement in performance, and as Tubby points out, there is not a lot to go on. I think you are going to have to investigate things along the line of parallel query and index vs full table scans as well any number of performance tuning methods before you will see any significant gains. I would start with the Performance Manual as a start and then follow that up with the hard yards of query plans and stats.
    Alternatively, you could just set the gofast parameter to TRUE and everything will be all right.
    Andre

  • Whats the difference between and Album and a Smart Album

    OK, just upgraded.... So, whats the difference between an Album and a Smart Album?  
    Also, I like to organise my stuff, so if I create a folder for each year, and then a project within that year, why is it that the photos are always in both - and then again if I chose to create an album specific to a project, they are there again.
    So it might look:
              Folder (2012 Equine Photography)
                   Project - Specific Events
                        Album - Big Barn Dressage May
    Does this mean the individual photo is stored 3 times and using 3 times the space?
    Thanks guys!

    Mrsthebraggster wrote:
    So it might look:
              Folder (2012 Equine Photography)
                   Project - Specific Events
                        Album - Big Barn Dressage May
    Does this mean the individual photo is stored 3 times and using 3 times the space?
    No. Conceptually the Master only lives lives in the single (time based) Project you import it into. Albums are just collections of pointers that point to  images in various Projects.
    "Big Barn Dressage May" could be a Project, but only if it is only one day and a limited number of image files; otherwise an Album. "2012 Equine Photography" should be an album or a Folder of Albums. "Specific Events" could be an Album or a Folder of Albums.
    A Project should not be used as a Folder.
    From an earlier post of mine:
    Folders are indeed flexible organizational tools but IMO often overused. Folders can effectively hide contents from view and therefore require users to remember how folders are nested and what is inside them. Folders were the only way to deal with single-original film, but are IMO limiting to image database thinking.
    The way I look at it conceptually:
    Aperture is a database (DB), and each image file lives in one Project.
    Albums are just collections of Pointers that point to individual image files living in one or more Projects. Since they just contain pointers, albums can be created or deleted at will without affecting image files. Very powerful. And Albums of pointers take up almost zero space, so they are fast and do not make the Library size grow.
    Keywords can be applied to every image separately or in batches. Keywords are hugely powerful and largely obviate the need for folders. Not that we should never use folders, just that we should use folders only when useful organizationally - - after first determining that using keywords and albums is not a better approach.
    As one example imagine the keyword "flowers."  Every image of a 100,000 images Library that has some flowers in it has the keyword flowers. Then say we want to put flowers in an ad, or as background for a show of some kind, or to print pix for a party, or even just to look for an image for some other reason. We can find every flower image in a 100k-image database in 2 seconds, and in another few seconds create an Album called "Flowers" that points to all of those individual images.
    Similarly all family pix can have a keyword "family" and all work pix can have a key word "work." Each individual pic may have any number of keywords. Such pic characteristics (work, family, flowers, etc.) should not be organized via folders.
    So by using keywords and albums we can have instant access to every image everywhere, very cool. And keywords and albums essentially take up no space in the database.
    Another approach is to use a folder "Family" for family pix, a folder "Flowers" for flowers pix and another folder "Work" for work pix. IMO such folders usage is a very poor approach to using an images database (probably stemming from old paper or film work practices). Note that one cannot put an image with family in a field of flowers at a work picnic in all three folders; but it is instant with keywords.
    HTH
    -Allen

  • Whats the difference between an iPhone 5s and a iPhone 5c

    Whats the difference between the iphone 5s and the iphone 5c???

    Rider11 wrote:
    The 5c has plastic backs with different colors just for fun other then that nothing is different.
    You'd better look up the above linked comparison as well if you believe you are correct....

  • Whats the difference between an INTERFACE and a CLASS?

    Whats the difference between an INTERFACE and a CLASS?
    Please help.
    Thanx.

    http://search.java.sun.com/search/java/index.jsp?col=javaforums&qp=%2Bforum%3A31&qt=Difference+between+interface+and+class

  • Hi I have the old photo shop elements 10 on my computer and want to update and was wondering what the differences between photoshop, lightroom and photoshop elements are? Also when I upgrade does it have to be with a monthly membership or can I just purch

    Hi I have the old photo shop elements 10 on my computer and want to update and was wondering what the differences between photoshop, lightroom and photoshop elements are?
    Also when I upgrade does it have to be with a monthly membership or can I just purchase the product out right like you use to be able?

    You cannot "update" from what you have to any of the applications you mention. It will have to be a straight purchase or subscription at full price.
    Photoshop is a professional level application that makes no apologies for its very long and steep learning curve.
    Lightroom is all about volume, and very light editing.
    The Photoshop Elements forum is at:
    https://forums.adobe.com/community/photoshop_elements/content
    Remember, you are not addressing Adobe here in the user forums.  You are requesting help from volunteers users just like you who give their time free of charge. No one has any obligation to answer your questions.
    I do not know where there is such a comparison table as you seek, but someone else might, or you can google.

  • Whats the difference  between Authentication and Login check up ?

    whats the difference between Authentication and Login check up ?

    Authentification is a more generic term. It's generally applicable to any situation where you check that information comes from where it claims to come from.
    Login is just one form of authentification.

  • Whats the difference between comparable and comparator?

    whats the difference between comparable and comparator?
    when must i use comparable, and when must i use comparator?

    whats the difference between comparable and
    comparator?Comparable is from the java.lang package, Comparator from java.util.
    when must i use comparable, and when must i use
    comparator?Here's a tutorial on both:
    http://java.sun.com/docs/books/tutorial/collections/interfaces/order.html

  • Whats the difference between oracle9i and oracle10g

    whats the difference between oracle9i and oracle10g?

    794244 wrote:
    whats the difference between oracle9i and oracle10g?About 12...
    SQL> select utl_match.jaro_winkler_similarity('oracle9i','oracle9i') as sameness from dual;
      SAMENESS
           100
    SQL> select utl_match.jaro_winkler_similarity('oracle9i','oracle10g') as sameness from dual;
      SAMENESS
            88
    SQL>

Maybe you are looking for

  • Looking for a Business Objects Universe built for OIM

    My company has Business Objects and Management prefers to do reporting using the BO product. Also adding reports to OIM requires several database changes and a redeploy to push out the label changes, and that causes the skitters with Management. We h

  • New File Mask

    I am testing out FMS3 (from FMS2) for linux, and while I'm enjoying some of the new features I'm running into a problem I can't track down... For my FMS2 setup in conf/Server.xml I set the Mask node to 022 so FMS created new files under those permiss

  • Best practice for keeping battery life optimal

    I am in a job role where my usage of my iPhone 4S is best described as: Weekdays: long call (60+ minutes) after long call (60+ minutes), etc. but MOSTLY voice calls. and Evenings/Nights:  Use my phone occasionally, mostly apps/data/entertainment type

  • Black MacBook Finish Spots

    Hello everyone, I've had my Macbook since June and over the last few months I've noticed that the paint on the cover looks like it's coming off. I have several small dots that show a shiny black layer underneath. I know a few people on this forum hav

  • T420s not getting Windows 7 Aero effect with newest 8.15.10.2769 Intel HD Graphics driver

    Updated with the lenovo update tool to the newes Graphics driver.  Now i do not see the Aero effect in Windows 7.  My Machine: 4170CTO with Intel Graphics  When running the Win7 Aero effect troubleshooting tool it says that the "color depth is set to