[코틀린 동시성] CH6 채널 - 통신을 통한 메모리 공유

0
post-thumbnail

[코틀린 동시성] CH6 채널 - 통신을 통한 메모리 공유

이 포스팅은 <코틀린 동시성 프로그래밍>, 미구엘 엔젤 카스티블랑코 토레스, 에이콘출판사(2020)을 읽고 개인 학습용으로 정리한 글입니다.

🔎검색용 키워드

(블로그 주인이 블로그 내 검색을 하기 위한 검색 키워드)

채널의 이해

  • 채널(channel)

채널 유형과 배압

  • 배압

언버퍼드 채널(Unbuffered Channel)

  • Rendezvous Channel

버퍼드 채널(Buffered Channel)

  • LinkedList Channel

    • Channel.UNLIMITED, Int.MAX_VALUE
  • Array Channel

  • Conflated Channel

채널과 상호작용

SendChannel 인터페이스

  • isClosedForSend

  • isFull

  • send()

    • ClosedChannelException
  • offer()

    • ClosedSendChannelException

ReceiveChannel 인터페이스

  • isClosedForReceive

  • receive()

    • ClosedReceiveChannelException
  • isEmpty

profile
Be able to be vulnerable, in search of truth

0개의 댓글