process(10)
-
[FreeBSD] PID and Process State
4.2 Process StateEvery process in the system is assigned a unique identifier termed the process identifier (PID). PIDs are the common mechanism used by applications and by the kernel to reference processes. PIDs are used by applications when the latter send a signal to a process and when receiving the exit status from a deceased process. Two PIDs are of special importance to each process: the PI..
2024.07.21 -
[FreeBSD] Process Management, Multiprogramming and Scheduling
Part II: ProcessesChapter 4.1 Introduction to Process ManagementA process is a program in execution. (ํ๋ก์ธ์ค์ ์ ์. ์ ํํ๊ฒ ๋ฐ์ง์๋ฉด, ํ๋ก๊ทธ๋จ๊ณผ๋ ๊ตฌ๋ถ๋๋ค.)A process has an address space containing a mapping of its program’s object code and global variables. It also has a set of kernel resources that it can name and on which it can operate using system calls. These resources include its credentials, signal state, a..
2024.07.16 -
[FreeBSD] Timing Services
3.6 Timing ServicesThe kernel provides several different timing services to processes. These services include timers that run in real time and timers that run only while a process is executing. Real TimeThe system’s time offset since January 1, 1970, Universal Coordinated Time (UTC), also known as the Epoch, is returned by the system call gettimeofday. (ํ์ ์ธ๊ณ์) Most modern processors (includin..
2024.07.15 -
[FreeBSD] Clock Interrupts
3.4 Clock InterruptsThe system is driven by a clock that interrupts at regular intervals. Each interrupt is referred to as a tick. On the PC, the clock ticks 1000 times per second. At each tick, the system updates the current time of day as well as user-process and system timers. Handling 1000 interrupts per second can be time consuming. To reduce the interrupt load, the kernel computes the num..
2024.07.10 -
[FreeBSD] System Calls
3.2 System CallsThe most frequent trap into the kernel (after clock processing) is a request to do a system call. System performance requires that the kernel minimize the overhead in fielding and dispatching a system call. The system-call handler must do the following work:Verify that the parameters to the system call are located at a valid user address, and copy them from the user’s address spa..
2024.07.10 -
[FreeBSD] Security, Process Credentials and Jail Virtualization
2.5 Security The FreeBSD security model has been developed over 40 years of evolving application needs. The key insight is that security must be part of system design; it cannot be successfully added later. The model addresses many different goals:Support authenticated local and remote access by multiple users, as well as integration with distributed authentication and directory servicesAllow us..
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 -
[Computer Network] Chap8. Transport layer (1)
8. Transport layer 1 - 3๊ณ์ธต์ด ์ปดํจํฐ๋ ์ฐพ์๊ณ , 4๊ณ์ธต์ destination software๋ฅผ ์ฐพ๋ ๊ณผ์ (process to process) - ํ ํ๋ก์ธ์ค์์ ๋ค๋ฅธ ํ๋ก์ธ์ค๋ก packet์ ์ ๋ฌํ๊ธฐ ์ํ์ฌ - ๊ฐ์ฅ ์ ๋ช ํ ๊ฒ์ ํด๋ผ์ด์ธํธ / ์๋ฒ ๊ตฌ์กฐ / ์ปดํจํฐ 2๋์ ํต์ - ๋ณธ์ธ์ด ์์ฒญํ ๋, ๋ด๊ฐ local host / ์๋ํธ์ด remote host + ์ปดํจํฐ ์์ ์ํํธ์จ์ด, process๋ฅผ ์ง์นญํ๊ฒ ๋จ -> local process & remote process - Port number – ํธ์คํธ ์ด์์ฒด์ ์์์ ๋์๊ฐ๋ ๋ค์ํ ํ๋ก์ธ์ค, ํ๋ก๊ทธ๋จ์ ์๋ณํ๋ ๋ฒํธ (16 bit int) + ๋ง์ด ์ฌ์ฉํ๋ ํ์ค SW ํ๋ก๊ทธ๋จ์ ๋ฏธ๋ฆฌ 1024๊ฐ ์ง์ -> ์ด์ธ์ ๊ฐ์ ์์๋ก..
2023.12.19 -
[์ด์์ฒด์ ] CFS in Linux
CFS Completely Fair Process Scheduling in Linux
2023.04.10 -
2022. 11. 04 : Architecture Kick - off
Architecture (11/4 ๊ฐ์ฆ์) View controller View ๋ผ๋ ์ค๋ ๋๊ฐ ํ์์ด ๋๋คOS์์๋ Process์์ ์๋ง์ thread๊ฐ ๋๋ค ์ํคํ ์ณ๋?ํ๋์ view๋ง ๋ณธ๋ค๋ฉด ์ฌ๋ฌ ์ปดํฌ๋ํธ์ ๋ชจ์์ด์ง๋ง,๋์ ์ธ (๋ฐํ์) ์ธก๋ฉด์์๋ Process, App ํ๋๋ฅผ ์๋ฏธ๋ฉ๋ชจ๋ฆฌ์์ ์ฃฝ์ง ์๋ ์์ญ ๋์ ์ด๊ณ ์ ์ ์ธ ์ธก๋ฉด์ ๋ค ๋ณด์์ผ ํ๋ค.MVC: Logical architecture Runtime architectureProcess, Thread ์ค์ ๋ก ๋ฐํ์์์ ๋ฐ๋ผ๋ณด๋ ๊ตฌ์กฐ (OS๊ฐ ์ธ์ํ๋ ๊ตฌ์กฐ)๋ ๊ฐ์ ์ฑ์ด ๋ฐ์ดํฐ๋ฅผ ๊ณต์ ํด์ผ ํ๋ค๋ฉด?ํ๋ก์ธ์ค: ๋ฐ์ดํฐ๋ฅผ ์ ์ํ์ง ์๋๋ค.๊ทธ๋ผ? ์ธ์ ๋ฉ์ธ์ง ํต์ ๋ฑ๋ฑ์ ๋ฐฉ๋ฒ์ด ์๋ค. Conceptual architecture ์ฐ์์์ ๋ง๊ฒ ๋ถ์ธ ์ด๋ฆ๋ค์ด..
2022.11.07