IO π NIO
π Difference:
- 곡ν΅μ : used to perform read and write operations
- μ°¨μ΄μ : How to use it in network programming
β IO
Input, Output
- 1οΈβ£ blocking
process waits until data operation finishes
- 2οΈβ£ input, output with: stream
- use stream for transferring data
- unidirectional data transfer
- 3οΈβ£ buffer: Non-buffer β
- 4οΈβ£ asynchronous: support β
β NIO
New Input, Output
- 1οΈβ£ non blocking
process doesnt wait, can do other work
- 2οΈβ£input, output with: channel
- channel: medium for efficient data transmisison between entity and buffer
- data is read into buffer, processed using a channel
- bidirectional
- 3οΈβ£ buffer: Buffer βοΈ
- 4οΈβ£ asynchronous: support βοΈ
This post is licensed under CC BY 4.0 by the author.