일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
- Photoshop
- JSX
- Gap
- 반응형 웹
- 상태
- CSS
- spring
- c++
- Javascript
- 통신사할인
- 강화학습
- 포토샵
- 알고리즘
- grid
- 소수
- 수학
- pandas
- SK바이오사이언스
- float
- 확률
- transform
- box-sizing
- stl
- skt membership
- REM
- c
- Codility
- 백준
- 미디어 쿼리
- react
- Today
- Total
sliver__
4.7 Operating-System Examples 본문
Linux Threads
Linux does not distinguish between processes and threads. In fact, Linux uses the term task — rather than process or thread — when referring to a flow of control within a program.
When clone() is invoked, it is passed a set of flags that determine how much sharing is to take place between the parent and child tasks.

clone(2) - Linux manual page
clone(2) — Linux manual page clone(2) System Calls Manual clone(2) NAME top clone, __clone2, clone3 - create a child process LIBRARY top Standard C library (libc, -lc) SYNOPSIS top /* Prototype for the glibc wrapper fu
man7.org
The varying level of sharing is possible because of the way a task is repre- sented in the Linux kernel. A unique kernel data structure (specifically, struct task struct) exists for each task in the system. This data structure, instead of storing data for the task, contains pointers to other data structures where these data are stored.
'CS > 운영체제' 카테고리의 다른 글
5.2 Scheduling Criteria (0) | 2023.11.18 |
---|---|
5.1 Basic Concept of CPU Scheduling (0) | 2023.11.18 |
4.6 Threading Issues (0) | 2023.11.13 |
4.5 Implicit Threading (0) | 2023.11.13 |
4.4 Thread Libraries (1) | 2023.11.09 |