Skip to content

ex. 5장(175p) : 스트림의 상태 #5

@lyouxsun

Description

@lyouxsun

질문 내용

Q. '스트림이 상태를 갖는다. or 갖지 않는다.' 라는 표현이 잘 이해가 되지 않습니다.

참고할 만한 자료

스트림 연산 : 상태 없음과 상태 있음

  • map, filter : 내부 상태 없음 (무한 스트림 처리 가능)
  • sorted, distinct : 내부 상태를 가짐 (무한 스트림 처리 불가능)
  • reduce, sum, max : 내부 상태의 크기가 한정되어 있다.
  • 병렬 코드에서 발행자에 상태가 있으면 안전하지 않다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions