Is serializability same as sequential consistency?











up vote
5
down vote

favorite












I have found people answering differences between linearizability and searializability, but nowhere have I found people either saying that serializability is same as sequential consistency or it is different from that.



Also I have been pounded with different definitions of the above terms in different articles, books and web pages and I have confused it all.
Could someone please explain the difference between serializability and sequential consistency is it exists.



I would appreciate formal definitions of the above terms additionally if possible (both in plain English and in terms of the program or execution histories).










share|improve this question






















  • I think they are same. This blog irenezhang.net/blog/2015/02/01/consistency.html also confirms that.
    – ptntialunrlsd
    Oct 12 '17 at 17:05















up vote
5
down vote

favorite












I have found people answering differences between linearizability and searializability, but nowhere have I found people either saying that serializability is same as sequential consistency or it is different from that.



Also I have been pounded with different definitions of the above terms in different articles, books and web pages and I have confused it all.
Could someone please explain the difference between serializability and sequential consistency is it exists.



I would appreciate formal definitions of the above terms additionally if possible (both in plain English and in terms of the program or execution histories).










share|improve this question






















  • I think they are same. This blog irenezhang.net/blog/2015/02/01/consistency.html also confirms that.
    – ptntialunrlsd
    Oct 12 '17 at 17:05













up vote
5
down vote

favorite









up vote
5
down vote

favorite











I have found people answering differences between linearizability and searializability, but nowhere have I found people either saying that serializability is same as sequential consistency or it is different from that.



Also I have been pounded with different definitions of the above terms in different articles, books and web pages and I have confused it all.
Could someone please explain the difference between serializability and sequential consistency is it exists.



I would appreciate formal definitions of the above terms additionally if possible (both in plain English and in terms of the program or execution histories).










share|improve this question













I have found people answering differences between linearizability and searializability, but nowhere have I found people either saying that serializability is same as sequential consistency or it is different from that.



Also I have been pounded with different definitions of the above terms in different articles, books and web pages and I have confused it all.
Could someone please explain the difference between serializability and sequential consistency is it exists.



I would appreciate formal definitions of the above terms additionally if possible (both in plain English and in terms of the program or execution histories).







serializable consistency






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 5 '17 at 16:25









Prakhar Agrawal

656617




656617












  • I think they are same. This blog irenezhang.net/blog/2015/02/01/consistency.html also confirms that.
    – ptntialunrlsd
    Oct 12 '17 at 17:05


















  • I think they are same. This blog irenezhang.net/blog/2015/02/01/consistency.html also confirms that.
    – ptntialunrlsd
    Oct 12 '17 at 17:05
















I think they are same. This blog irenezhang.net/blog/2015/02/01/consistency.html also confirms that.
– ptntialunrlsd
Oct 12 '17 at 17:05




I think they are same. This blog irenezhang.net/blog/2015/02/01/consistency.html also confirms that.
– ptntialunrlsd
Oct 12 '17 at 17:05












1 Answer
1






active

oldest

votes

















up vote
2
down vote













Serializability is more strict than Sequential consistency.



The definition of Sequential consistency in wiki:
The result of any execution is the same as if the operations of all the processors were executed in some sequential order, and the operations of each individual processor appear in this sequence in the order specified by its program.



And, the definition of Serializability in wiki:
A transaction schedule is serializable if its outcome (e.g., the resulting database state) is equal to the outcome of its transactions executed serially, i.e. without overlapping in time.



So, the granularity of Sequential consistency is a single operation (e.g., read or write), while that of Serializability is a transaction (i.e., a sequence of operations).



In other words, if a program satisfies serializablity, it also satisfies sequential consistency, and not vice versa.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    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',
    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%2fstackoverflow.com%2fquestions%2f43236731%2fis-serializability-same-as-sequential-consistency%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote













    Serializability is more strict than Sequential consistency.



    The definition of Sequential consistency in wiki:
    The result of any execution is the same as if the operations of all the processors were executed in some sequential order, and the operations of each individual processor appear in this sequence in the order specified by its program.



    And, the definition of Serializability in wiki:
    A transaction schedule is serializable if its outcome (e.g., the resulting database state) is equal to the outcome of its transactions executed serially, i.e. without overlapping in time.



    So, the granularity of Sequential consistency is a single operation (e.g., read or write), while that of Serializability is a transaction (i.e., a sequence of operations).



    In other words, if a program satisfies serializablity, it also satisfies sequential consistency, and not vice versa.






    share|improve this answer



























      up vote
      2
      down vote













      Serializability is more strict than Sequential consistency.



      The definition of Sequential consistency in wiki:
      The result of any execution is the same as if the operations of all the processors were executed in some sequential order, and the operations of each individual processor appear in this sequence in the order specified by its program.



      And, the definition of Serializability in wiki:
      A transaction schedule is serializable if its outcome (e.g., the resulting database state) is equal to the outcome of its transactions executed serially, i.e. without overlapping in time.



      So, the granularity of Sequential consistency is a single operation (e.g., read or write), while that of Serializability is a transaction (i.e., a sequence of operations).



      In other words, if a program satisfies serializablity, it also satisfies sequential consistency, and not vice versa.






      share|improve this answer

























        up vote
        2
        down vote










        up vote
        2
        down vote









        Serializability is more strict than Sequential consistency.



        The definition of Sequential consistency in wiki:
        The result of any execution is the same as if the operations of all the processors were executed in some sequential order, and the operations of each individual processor appear in this sequence in the order specified by its program.



        And, the definition of Serializability in wiki:
        A transaction schedule is serializable if its outcome (e.g., the resulting database state) is equal to the outcome of its transactions executed serially, i.e. without overlapping in time.



        So, the granularity of Sequential consistency is a single operation (e.g., read or write), while that of Serializability is a transaction (i.e., a sequence of operations).



        In other words, if a program satisfies serializablity, it also satisfies sequential consistency, and not vice versa.






        share|improve this answer














        Serializability is more strict than Sequential consistency.



        The definition of Sequential consistency in wiki:
        The result of any execution is the same as if the operations of all the processors were executed in some sequential order, and the operations of each individual processor appear in this sequence in the order specified by its program.



        And, the definition of Serializability in wiki:
        A transaction schedule is serializable if its outcome (e.g., the resulting database state) is equal to the outcome of its transactions executed serially, i.e. without overlapping in time.



        So, the granularity of Sequential consistency is a single operation (e.g., read or write), while that of Serializability is a transaction (i.e., a sequence of operations).



        In other words, if a program satisfies serializablity, it also satisfies sequential consistency, and not vice versa.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 11 at 6:42

























        answered Apr 26 at 9:02









        kiki_yu

        96768




        96768






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f43236731%2fis-serializability-same-as-sequential-consistency%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

            Bressuire

            Vorschmack

            Quarantine