Intruduction - threads of control (or simply threads) - single process 환경에서 여러 task 들을 수행한다. - single process 내 모든 thread들은 동일한 process components (file descriptor, memory 등) 에 접근 가능 - consistency를 잘 다뤄야 한다. -> synchronization mechanism 필요 Thread Concepts - thread 장점 4가지 1. 각 event에 하나의 thread를 할당함으로써 asynchronous event들을 간단히 구현할 수 있다.
각 thread는 synchromous하게 구현하면 되는데 asynchronous 프로그래밍 방식보다 synchronous 방식이 더 간단하다. 2. multiple process 방식은 memory와 file descriptor를 공유하기 위해 복잡한 메카니즘을 사용해야 하는 반면 thr...
원문 링크 : Chapter 11. Threads