본문 바로가기

The Office Lover

검색하기
The Office Lover
프로필사진 Michael Gary Scott

  • 분류 전체보기 (16)
    • Backend (6)
    • Design Patterns (7)
    • DataBase (3)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   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
Tags
  • SOLID원칙
  • 데이터베이스
  • 자바
  • postgresql
  • 설계원칙
  • transaction
  • 트랜잭션
  • RDBMS
  • 스프링프레임워크
  • 디자인패턴
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록동기처리 (1)

The Office Lover

Java blocking과 non-blocking

Blocking I/O (블로킹 입출력) Blocking I/O는 입출력 작업 중에 해당 작업이 완료될 때까지 스레드가 블로킹되는 방식입니다. 즉, 입출력 작업이 완료되기 전까지 해당 스레드는 다른 작업을 수행할 수 없으며 대기 상태에 있게 됩니다. 입출력 작업은 데이터를 읽어오거나 쓰는 동안 스레드가 멈추기 때문에 해당 작업이 오래 걸리는 경우, 다른 작업들의 처리도 지연될 수 있습니다. import java.io.*; public class BlockingIOExample { public static void main(String[] args) { try { FileInputStream fileInputStream = new FileInputStream("input.txt"); byte[] data ..

Backend 2023. 7. 21. 14:58
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바