Open daehwan2yo opened 1 year ago
A container for data of a specific primitive type
thread safety : are not safe for use by multiple concurrent threads.
Each subclass of this class defines two categories of get
and put
operations.
mark is not always defined.
reset
method is invoked
A newly-created buffer always has a position of zero and a mark that is undefined.
NIO
Java New Input & Output
using java nio
Channel : I/O abstraction
Selectors : an Object which monitors multiple channels for the events
기존 java io package 와 차이점
read()
) 로 읽어들여온 데이터를 Process (JVM) 으로 이동시켜주는 추가적인 작업 (Context Switching 발생) 이 일어난다.