Pipeline(4)
-
[FreeBSD] I/O System, Descriptor and Socket IPC
2.7 I/O System OverviewThe basic model of the UNIX I/O system is a sequence of bytes that can be accessed either randomly or sequentially. There are no access methods and no control blocks in a typical UNIX user process. Different programs expect various levels of structure, but the kernel does not impose structure on I/O. For instance, the convention for text files is lines of ASCII characters ..
2024.06.25 -
[FreeBSD] Kernel Services and Process Management
Kernel Services The boundary between the kernel- and user-level code is enforced by hardware-protection facilities provided by the underlying hardware. The kernel operates in a separate address space that is inaccessible to user processes. Privileged operations—such as starting I/O and halting the central processing unit (CPU)—are available to only the kernel. Applications request services from ..
2024.05.01 -
[ํ์คํ] ZMQ Pattern
ZMQ Request-Reply pattern ‘Hello World’ client/server example Client sends “Hello” to the server Server replies with “World” 1:1 TCP echo ์๋ฒ์ ์ ์ฌ Synchronous REQ-REP socket ์ดํ๋ฆฌ์ผ์ด์ ์ ๋๊ธฐ, ํต์ ์ ๋ํ ๋ถ๋ถ์ ์์์ ๋น๋๊ธฐ๋ก ์ฒ๋ฆฌ๋จ Client issues send() and then recv(), in a loop ํด๋ผ์ด์ธํธ๊ฐ ์ ํํ ํจํด - ๋ฆฌํ์คํธ ํจํด / ์๋ฒ๋ ๋ฆฌํ๋ผ์ด ํจํด Doing any other sequence (e.g., sending two messages in a row) will result in a return code of -1 from t..
2023.04.18 -
[์ด์์ฒด์ ] CPU์ Architecture _ SMP vs NUMA vs Clustered system
Bootstrapping in Linux - CPU - smart X -> ๋งค์ฐ ๋น ๋ฅด๊ฒ ๋ฉ๋ชจ๋ฆฌ์์ ๋ช ๋ น์ด๋ฅผ ์ฝ๊ณ , ์คํํ๋ ๊ฒ - ROM - Read only memory - ์ฝ๊ธฐ ์ ์ฉ ๋ฉ๋ชจ๋ฆฌ, ์๊ตฌ์ ์ผ๋ก ์ ์ฅํ๋ ๋นํ๋ฐ์ฑ ๋ฉ๋ชจ๋ฆฌ - ์ ์์ด ๊บผ์ ธ๋ ์กด์ฌ -> ์ฒ์ ๋ถํ ๋ ๋ ์คํํ ๋ชจ๋ + RAM - Random Acess Memery - ํ๋ฐ์ฑ ๋ฉ๋ชจ๋ฆฌ, ์์ ์ค์ธ ๋ด์ฉ์ ํ์์ ์ผ๋ก ์ ์ฅ ํ๋์จ์ด ์ด๊ธฐํ ๋ฐ ํ ์คํธ - BIOS - Basic input output system - UEFL - Unified Extensible Firmware Interface -> ํ์จ์ด : ํ๋์จ์ด์ ํฌํจ๋ ์ํํธ์จ์ด == ๋กฌ์ ์ ์ฅ๋ ์ํํธ์จ์ด -> POST - power on self test ์งํ - ๋ฉ๋ชจ๋ฆฌ ๋ฐ i..
2023.03.25