computer club

  • 홈
  • 방명록
  • ALL Post
    • Spring
    • JPA
    • MariaDB
    • Java
    • Kotlin
    • Study
      • 클린코더스 강의
      • Effective Java
      • 운영체제
      • 오브젝트
      • 코드스피츠 강의
      • 객체지향
      • Modern Java in Action
      • Java Network Programming
      • Spring Batch
      • 강의 메모
      • HTML,CSS
      • kafka
      • elasticsearch
    • 자료구조
    • 알고리즘
    • Servlet-JSP
      • Servlet-JSP 답변형 게시판 만들기
    • Spring legacy
    • Computer Science
    • 메모
    • infra
    • ERROR!!!!!!!

Tag

error, Kotlin, MySQL, shared lock, exclusive lock, 오브젝트, Servlet, 스프링시큐리티, 알고리즘, springsecurity, 객체지향, 운영체제, OOP, JSP, springboot, jpa, java, 데이터베이스, Spring, 예외처리,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Github
  • Linkedin

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

shared lock 2

shared lock, exclusive lock

InnoDB implements standard row-level locking where there are two types of locks, shared (S) locks and exclusive (X) locks. - A shared (S) lock permits the transaction that holds the lock to read a row. - An exclusive (X) lock permits the transaction that holds the lock to update or delete a row. If transaction T1 holds a shared (S) lock on row r, then requests from some distinct transaction T2 f..

Study 2022.08.15

[Database] Transaction, Lock

Transaction 트랜잭션은 DBMS에서 데이터를 다루는 논리적인 작업 단위다. 트랜잭션은 전부 수행되거나, 전부 수행되지 말아야 한다.(All or Nothing) 트랜잭션의 동작 원리 A계좌의 값을 데이터베이스에서 메모리 버퍼로 읽어온다. B계좌의 값을 데이터베이스에서 메모리 버퍼로 읽어온다. A계좌에서 10000원을 인출한 값을 저장. B계좌에서 10000원을 입금한 값을 저장. A계좌의 값을 메모리 버퍼에서 데이터베이스에 기록 B계좌의 값을 메모리 버퍼에서 데이터베이스에 기록 이런 작업이 있다고 했을 때, 트랜잭션의 수행 과정은 두 가지 방법으로 나눌 수 있다. 이 두 가지 방법은 커밋이 어느 위치에 들어가느냐에 따라 달라진다. A. 4번 작업을 마치고 커밋한다. B. 6번 작업을 마치고 커밋..

Study 2021.05.25
이전
1
다음
더보기

Copyright © Kakao Corp. All rights reserved.

  • github

티스토리툴바