What Alt+f4 actually does? Will using it frequently cause any harm to the system?












1















The very first thing I notice when using this method to quickly close a running program/game is potential data loss, like settings. But if I'm perfectly OK with that, will keeping doing this cause any long-term harm to the system, either software or hardware like RAM?



Also, I'd like to know what Alt+f4 actually does? If it actually tries to kill the associated process, it would take no time for the program/game to close, but as I noticed, some games (and most of them) freeze for some seconds before actually closing, while if I kill their processes in Task manager, they will close almost immediately.



One more thing I know is many games and programs seem to have been implemented with this as a hotkey for quick-exit, so they will actually ask if I want to quit and save the progress before quitting, just like normal procedure.










share|improve this question

























  • The shortcut just exists the process. Any loss of data would be isolated to the current data loaded by the process your teling Windows to exit. Furthermore the behavior of this exist procedure is left up to the application itself. A program can even block this shortcut if it so desires.

    – Ramhound
    Jul 17 '14 at 12:28


















1















The very first thing I notice when using this method to quickly close a running program/game is potential data loss, like settings. But if I'm perfectly OK with that, will keeping doing this cause any long-term harm to the system, either software or hardware like RAM?



Also, I'd like to know what Alt+f4 actually does? If it actually tries to kill the associated process, it would take no time for the program/game to close, but as I noticed, some games (and most of them) freeze for some seconds before actually closing, while if I kill their processes in Task manager, they will close almost immediately.



One more thing I know is many games and programs seem to have been implemented with this as a hotkey for quick-exit, so they will actually ask if I want to quit and save the progress before quitting, just like normal procedure.










share|improve this question

























  • The shortcut just exists the process. Any loss of data would be isolated to the current data loaded by the process your teling Windows to exit. Furthermore the behavior of this exist procedure is left up to the application itself. A program can even block this shortcut if it so desires.

    – Ramhound
    Jul 17 '14 at 12:28
















1












1








1








The very first thing I notice when using this method to quickly close a running program/game is potential data loss, like settings. But if I'm perfectly OK with that, will keeping doing this cause any long-term harm to the system, either software or hardware like RAM?



Also, I'd like to know what Alt+f4 actually does? If it actually tries to kill the associated process, it would take no time for the program/game to close, but as I noticed, some games (and most of them) freeze for some seconds before actually closing, while if I kill their processes in Task manager, they will close almost immediately.



One more thing I know is many games and programs seem to have been implemented with this as a hotkey for quick-exit, so they will actually ask if I want to quit and save the progress before quitting, just like normal procedure.










share|improve this question
















The very first thing I notice when using this method to quickly close a running program/game is potential data loss, like settings. But if I'm perfectly OK with that, will keeping doing this cause any long-term harm to the system, either software or hardware like RAM?



Also, I'd like to know what Alt+f4 actually does? If it actually tries to kill the associated process, it would take no time for the program/game to close, but as I noticed, some games (and most of them) freeze for some seconds before actually closing, while if I kill their processes in Task manager, they will close almost immediately.



One more thing I know is many games and programs seem to have been implemented with this as a hotkey for quick-exit, so they will actually ask if I want to quit and save the progress before quitting, just like normal procedure.







windows-7 gaming






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 17 '14 at 11:13









Journeyman Geek

112k43217369




112k43217369










asked Jul 17 '14 at 11:08









Nguyễn Tuấn DanhNguyễn Tuấn Danh

543149




543149













  • The shortcut just exists the process. Any loss of data would be isolated to the current data loaded by the process your teling Windows to exit. Furthermore the behavior of this exist procedure is left up to the application itself. A program can even block this shortcut if it so desires.

    – Ramhound
    Jul 17 '14 at 12:28





















  • The shortcut just exists the process. Any loss of data would be isolated to the current data loaded by the process your teling Windows to exit. Furthermore the behavior of this exist procedure is left up to the application itself. A program can even block this shortcut if it so desires.

    – Ramhound
    Jul 17 '14 at 12:28



















The shortcut just exists the process. Any loss of data would be isolated to the current data loaded by the process your teling Windows to exit. Furthermore the behavior of this exist procedure is left up to the application itself. A program can even block this shortcut if it so desires.

– Ramhound
Jul 17 '14 at 12:28







The shortcut just exists the process. Any loss of data would be isolated to the current data loaded by the process your teling Windows to exit. Furthermore the behavior of this exist procedure is left up to the application itself. A program can even block this shortcut if it so desires.

– Ramhound
Jul 17 '14 at 12:28












2 Answers
2






active

oldest

votes


















3














Alt-F4 is the windows command to close an application.



The application itself has the ability to execute code when ALT-F4 is pressed.



You should know that alt-f4 will never terminate an application while being in a read/write sequence unless the application itself knows it is safe to abort.



When talking about games, developers often do not keep in mind that people press the ALT-F4 to quickly exit a game. If the game is saving at that moment (often seen by an indicator of some sorts with a message: do not power off the computer if you see this indicator) and you press ALT-F4, the chances are high that the profile will become corrupt and your savegame is lost.



As for implementation, it works the other way around. Since this is a windows shortcut key, unless a program/game explicitly prevent ALT-F4 to not exit its program, it will always work.






share|improve this answer
























  • "You should know that alt-f4 will never terminate an application while being in a read/write sequence unless the application itself knows it is safe to abort." What about Alt+F4 in-between read/write operations.

    – MasterMastic
    Nov 22 '14 at 19:05













  • It doesn't matter. Alt-F4 is only a call to the app's shutdown function. if its not aborted, it means the app knows its save to abort. Otherwise it will wait with the shutdown and queue it to the end of the operations. If the app is poorly written, you will corrupt files.

    – LPChip
    Nov 22 '14 at 21:40











  • That's my point, and why it should be clear that it's up to the developers (so what bothered me about your statement is the word "never"). I wouldn't generally trust a program to know when it's done writing or going to write some more, because what's for sure is that naive applications would corrupt.

    – MasterMastic
    Nov 22 '14 at 22:39











  • @MasterMastic: I haven't ever found an application where this could be a problem. Games is a different story though, but if you talk about known apps or apps in alpha, yes, then ALT-F4 may be like this.

    – LPChip
    Nov 22 '14 at 23:17





















0














alt+f4 is a built-in OS shortcut which, when triggered, will send a SIGINT signal to the process managing the active window. SIGINT (as for signal interrupt) is a signal meant to tell the process that is has been requested to stop. When developing an application, you can define in it's behavior that it can "catch" a signal, meaning that you modify the course of action automatically defined by the application when it receives such signal.



A good example of this would be a text editor. Any application receiving a SIGINT will exit, however, developers of text editors will preferably override this behavior to ask the user if it wants to save the current opened file before exiting. In that case developers tell the program not to exit when receiving the SIGINT, but instead prompting the user, and depending on the user choice, manually exit (for example, in Microsoft Word, if the user chooses cancel, the program won't exit, even if it received a SIGINT).



There are several signals with different uses, and there even are several signals regarding exiting an application. Theoritically, you can choose the behavior you want for any of these. SIGINT, for example, could be considered a "soft" exit signal. SIGKILL, on the other hand, is the hardest exit signal that exists, and should never be overriden, as if it is sent, it is usually because the user wants immediate interruption of the program, no questions asked. I could bet, for example, that if you sent a SIGKILL to Microsoft Word, it would exit immediately, even if you have unsaved changes.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f784297%2fwhat-altf4-actually-does-will-using-it-frequently-cause-any-harm-to-the-system%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    Alt-F4 is the windows command to close an application.



    The application itself has the ability to execute code when ALT-F4 is pressed.



    You should know that alt-f4 will never terminate an application while being in a read/write sequence unless the application itself knows it is safe to abort.



    When talking about games, developers often do not keep in mind that people press the ALT-F4 to quickly exit a game. If the game is saving at that moment (often seen by an indicator of some sorts with a message: do not power off the computer if you see this indicator) and you press ALT-F4, the chances are high that the profile will become corrupt and your savegame is lost.



    As for implementation, it works the other way around. Since this is a windows shortcut key, unless a program/game explicitly prevent ALT-F4 to not exit its program, it will always work.






    share|improve this answer
























    • "You should know that alt-f4 will never terminate an application while being in a read/write sequence unless the application itself knows it is safe to abort." What about Alt+F4 in-between read/write operations.

      – MasterMastic
      Nov 22 '14 at 19:05













    • It doesn't matter. Alt-F4 is only a call to the app's shutdown function. if its not aborted, it means the app knows its save to abort. Otherwise it will wait with the shutdown and queue it to the end of the operations. If the app is poorly written, you will corrupt files.

      – LPChip
      Nov 22 '14 at 21:40











    • That's my point, and why it should be clear that it's up to the developers (so what bothered me about your statement is the word "never"). I wouldn't generally trust a program to know when it's done writing or going to write some more, because what's for sure is that naive applications would corrupt.

      – MasterMastic
      Nov 22 '14 at 22:39











    • @MasterMastic: I haven't ever found an application where this could be a problem. Games is a different story though, but if you talk about known apps or apps in alpha, yes, then ALT-F4 may be like this.

      – LPChip
      Nov 22 '14 at 23:17


















    3














    Alt-F4 is the windows command to close an application.



    The application itself has the ability to execute code when ALT-F4 is pressed.



    You should know that alt-f4 will never terminate an application while being in a read/write sequence unless the application itself knows it is safe to abort.



    When talking about games, developers often do not keep in mind that people press the ALT-F4 to quickly exit a game. If the game is saving at that moment (often seen by an indicator of some sorts with a message: do not power off the computer if you see this indicator) and you press ALT-F4, the chances are high that the profile will become corrupt and your savegame is lost.



    As for implementation, it works the other way around. Since this is a windows shortcut key, unless a program/game explicitly prevent ALT-F4 to not exit its program, it will always work.






    share|improve this answer
























    • "You should know that alt-f4 will never terminate an application while being in a read/write sequence unless the application itself knows it is safe to abort." What about Alt+F4 in-between read/write operations.

      – MasterMastic
      Nov 22 '14 at 19:05













    • It doesn't matter. Alt-F4 is only a call to the app's shutdown function. if its not aborted, it means the app knows its save to abort. Otherwise it will wait with the shutdown and queue it to the end of the operations. If the app is poorly written, you will corrupt files.

      – LPChip
      Nov 22 '14 at 21:40











    • That's my point, and why it should be clear that it's up to the developers (so what bothered me about your statement is the word "never"). I wouldn't generally trust a program to know when it's done writing or going to write some more, because what's for sure is that naive applications would corrupt.

      – MasterMastic
      Nov 22 '14 at 22:39











    • @MasterMastic: I haven't ever found an application where this could be a problem. Games is a different story though, but if you talk about known apps or apps in alpha, yes, then ALT-F4 may be like this.

      – LPChip
      Nov 22 '14 at 23:17
















    3












    3








    3







    Alt-F4 is the windows command to close an application.



    The application itself has the ability to execute code when ALT-F4 is pressed.



    You should know that alt-f4 will never terminate an application while being in a read/write sequence unless the application itself knows it is safe to abort.



    When talking about games, developers often do not keep in mind that people press the ALT-F4 to quickly exit a game. If the game is saving at that moment (often seen by an indicator of some sorts with a message: do not power off the computer if you see this indicator) and you press ALT-F4, the chances are high that the profile will become corrupt and your savegame is lost.



    As for implementation, it works the other way around. Since this is a windows shortcut key, unless a program/game explicitly prevent ALT-F4 to not exit its program, it will always work.






    share|improve this answer













    Alt-F4 is the windows command to close an application.



    The application itself has the ability to execute code when ALT-F4 is pressed.



    You should know that alt-f4 will never terminate an application while being in a read/write sequence unless the application itself knows it is safe to abort.



    When talking about games, developers often do not keep in mind that people press the ALT-F4 to quickly exit a game. If the game is saving at that moment (often seen by an indicator of some sorts with a message: do not power off the computer if you see this indicator) and you press ALT-F4, the chances are high that the profile will become corrupt and your savegame is lost.



    As for implementation, it works the other way around. Since this is a windows shortcut key, unless a program/game explicitly prevent ALT-F4 to not exit its program, it will always work.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jul 17 '14 at 12:11









    LPChipLPChip

    35.6k55185




    35.6k55185













    • "You should know that alt-f4 will never terminate an application while being in a read/write sequence unless the application itself knows it is safe to abort." What about Alt+F4 in-between read/write operations.

      – MasterMastic
      Nov 22 '14 at 19:05













    • It doesn't matter. Alt-F4 is only a call to the app's shutdown function. if its not aborted, it means the app knows its save to abort. Otherwise it will wait with the shutdown and queue it to the end of the operations. If the app is poorly written, you will corrupt files.

      – LPChip
      Nov 22 '14 at 21:40











    • That's my point, and why it should be clear that it's up to the developers (so what bothered me about your statement is the word "never"). I wouldn't generally trust a program to know when it's done writing or going to write some more, because what's for sure is that naive applications would corrupt.

      – MasterMastic
      Nov 22 '14 at 22:39











    • @MasterMastic: I haven't ever found an application where this could be a problem. Games is a different story though, but if you talk about known apps or apps in alpha, yes, then ALT-F4 may be like this.

      – LPChip
      Nov 22 '14 at 23:17





















    • "You should know that alt-f4 will never terminate an application while being in a read/write sequence unless the application itself knows it is safe to abort." What about Alt+F4 in-between read/write operations.

      – MasterMastic
      Nov 22 '14 at 19:05













    • It doesn't matter. Alt-F4 is only a call to the app's shutdown function. if its not aborted, it means the app knows its save to abort. Otherwise it will wait with the shutdown and queue it to the end of the operations. If the app is poorly written, you will corrupt files.

      – LPChip
      Nov 22 '14 at 21:40











    • That's my point, and why it should be clear that it's up to the developers (so what bothered me about your statement is the word "never"). I wouldn't generally trust a program to know when it's done writing or going to write some more, because what's for sure is that naive applications would corrupt.

      – MasterMastic
      Nov 22 '14 at 22:39











    • @MasterMastic: I haven't ever found an application where this could be a problem. Games is a different story though, but if you talk about known apps or apps in alpha, yes, then ALT-F4 may be like this.

      – LPChip
      Nov 22 '14 at 23:17



















    "You should know that alt-f4 will never terminate an application while being in a read/write sequence unless the application itself knows it is safe to abort." What about Alt+F4 in-between read/write operations.

    – MasterMastic
    Nov 22 '14 at 19:05







    "You should know that alt-f4 will never terminate an application while being in a read/write sequence unless the application itself knows it is safe to abort." What about Alt+F4 in-between read/write operations.

    – MasterMastic
    Nov 22 '14 at 19:05















    It doesn't matter. Alt-F4 is only a call to the app's shutdown function. if its not aborted, it means the app knows its save to abort. Otherwise it will wait with the shutdown and queue it to the end of the operations. If the app is poorly written, you will corrupt files.

    – LPChip
    Nov 22 '14 at 21:40





    It doesn't matter. Alt-F4 is only a call to the app's shutdown function. if its not aborted, it means the app knows its save to abort. Otherwise it will wait with the shutdown and queue it to the end of the operations. If the app is poorly written, you will corrupt files.

    – LPChip
    Nov 22 '14 at 21:40













    That's my point, and why it should be clear that it's up to the developers (so what bothered me about your statement is the word "never"). I wouldn't generally trust a program to know when it's done writing or going to write some more, because what's for sure is that naive applications would corrupt.

    – MasterMastic
    Nov 22 '14 at 22:39





    That's my point, and why it should be clear that it's up to the developers (so what bothered me about your statement is the word "never"). I wouldn't generally trust a program to know when it's done writing or going to write some more, because what's for sure is that naive applications would corrupt.

    – MasterMastic
    Nov 22 '14 at 22:39













    @MasterMastic: I haven't ever found an application where this could be a problem. Games is a different story though, but if you talk about known apps or apps in alpha, yes, then ALT-F4 may be like this.

    – LPChip
    Nov 22 '14 at 23:17







    @MasterMastic: I haven't ever found an application where this could be a problem. Games is a different story though, but if you talk about known apps or apps in alpha, yes, then ALT-F4 may be like this.

    – LPChip
    Nov 22 '14 at 23:17















    0














    alt+f4 is a built-in OS shortcut which, when triggered, will send a SIGINT signal to the process managing the active window. SIGINT (as for signal interrupt) is a signal meant to tell the process that is has been requested to stop. When developing an application, you can define in it's behavior that it can "catch" a signal, meaning that you modify the course of action automatically defined by the application when it receives such signal.



    A good example of this would be a text editor. Any application receiving a SIGINT will exit, however, developers of text editors will preferably override this behavior to ask the user if it wants to save the current opened file before exiting. In that case developers tell the program not to exit when receiving the SIGINT, but instead prompting the user, and depending on the user choice, manually exit (for example, in Microsoft Word, if the user chooses cancel, the program won't exit, even if it received a SIGINT).



    There are several signals with different uses, and there even are several signals regarding exiting an application. Theoritically, you can choose the behavior you want for any of these. SIGINT, for example, could be considered a "soft" exit signal. SIGKILL, on the other hand, is the hardest exit signal that exists, and should never be overriden, as if it is sent, it is usually because the user wants immediate interruption of the program, no questions asked. I could bet, for example, that if you sent a SIGKILL to Microsoft Word, it would exit immediately, even if you have unsaved changes.






    share|improve this answer




























      0














      alt+f4 is a built-in OS shortcut which, when triggered, will send a SIGINT signal to the process managing the active window. SIGINT (as for signal interrupt) is a signal meant to tell the process that is has been requested to stop. When developing an application, you can define in it's behavior that it can "catch" a signal, meaning that you modify the course of action automatically defined by the application when it receives such signal.



      A good example of this would be a text editor. Any application receiving a SIGINT will exit, however, developers of text editors will preferably override this behavior to ask the user if it wants to save the current opened file before exiting. In that case developers tell the program not to exit when receiving the SIGINT, but instead prompting the user, and depending on the user choice, manually exit (for example, in Microsoft Word, if the user chooses cancel, the program won't exit, even if it received a SIGINT).



      There are several signals with different uses, and there even are several signals regarding exiting an application. Theoritically, you can choose the behavior you want for any of these. SIGINT, for example, could be considered a "soft" exit signal. SIGKILL, on the other hand, is the hardest exit signal that exists, and should never be overriden, as if it is sent, it is usually because the user wants immediate interruption of the program, no questions asked. I could bet, for example, that if you sent a SIGKILL to Microsoft Word, it would exit immediately, even if you have unsaved changes.






      share|improve this answer


























        0












        0








        0







        alt+f4 is a built-in OS shortcut which, when triggered, will send a SIGINT signal to the process managing the active window. SIGINT (as for signal interrupt) is a signal meant to tell the process that is has been requested to stop. When developing an application, you can define in it's behavior that it can "catch" a signal, meaning that you modify the course of action automatically defined by the application when it receives such signal.



        A good example of this would be a text editor. Any application receiving a SIGINT will exit, however, developers of text editors will preferably override this behavior to ask the user if it wants to save the current opened file before exiting. In that case developers tell the program not to exit when receiving the SIGINT, but instead prompting the user, and depending on the user choice, manually exit (for example, in Microsoft Word, if the user chooses cancel, the program won't exit, even if it received a SIGINT).



        There are several signals with different uses, and there even are several signals regarding exiting an application. Theoritically, you can choose the behavior you want for any of these. SIGINT, for example, could be considered a "soft" exit signal. SIGKILL, on the other hand, is the hardest exit signal that exists, and should never be overriden, as if it is sent, it is usually because the user wants immediate interruption of the program, no questions asked. I could bet, for example, that if you sent a SIGKILL to Microsoft Word, it would exit immediately, even if you have unsaved changes.






        share|improve this answer













        alt+f4 is a built-in OS shortcut which, when triggered, will send a SIGINT signal to the process managing the active window. SIGINT (as for signal interrupt) is a signal meant to tell the process that is has been requested to stop. When developing an application, you can define in it's behavior that it can "catch" a signal, meaning that you modify the course of action automatically defined by the application when it receives such signal.



        A good example of this would be a text editor. Any application receiving a SIGINT will exit, however, developers of text editors will preferably override this behavior to ask the user if it wants to save the current opened file before exiting. In that case developers tell the program not to exit when receiving the SIGINT, but instead prompting the user, and depending on the user choice, manually exit (for example, in Microsoft Word, if the user chooses cancel, the program won't exit, even if it received a SIGINT).



        There are several signals with different uses, and there even are several signals regarding exiting an application. Theoritically, you can choose the behavior you want for any of these. SIGINT, for example, could be considered a "soft" exit signal. SIGKILL, on the other hand, is the hardest exit signal that exists, and should never be overriden, as if it is sent, it is usually because the user wants immediate interruption of the program, no questions asked. I could bet, for example, that if you sent a SIGKILL to Microsoft Word, it would exit immediately, even if you have unsaved changes.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 19 '18 at 13:02









        PoutchiPatchPoutchiPatch

        19119




        19119






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f784297%2fwhat-altf4-actually-does-will-using-it-frequently-cause-any-harm-to-the-system%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Список кардиналов, возведённых папой римским Каликстом III

            Deduzione

            Mysql.sock missing - “Can't connect to local MySQL server through socket”