시스템 콜(System Call) 의 정의 및 STD C Lib. 와 구분하는 방법
Dev.Programming/Other.Computer.Science 2010/04/20 21:32시스템 호출(System Call)은 운영 체제가 제공하는 서비스에 대한 프로그래밍 인터페이스이다. 보통 C나 C++과
같은 고급 언어로 쓰였다. 대부분의 프로그램들은 직접 시스템
호출을 사용하기보다는 고급 API를
통해 시스템 호출에 접근한다.
System call 이란, 프로그래밍 언어에서 지원하지 않는 기능에 대하여
운영체계의 루틴을 호출하여 이용하는 것을 말한다. 시스템 콜의 세 가지 기능은 다음과 같다.
1.사용자 모드에 있는 응용
프로그램이 커널의 기능을 사용할 수 있도록 하는 것.
2.시스템 콜을 부르면 사용자 모드에서 커널 모드로 바뀐다
3.커널에서 시스템 콜을 처리하면 커널 모드에서 사용자 모드로 바뀌어 작업을 계속한다.
시스템 호출의 유형
1.프로세서 제어(process Control)
2.파일 조작(file manipulation)
3.장치 관리(Device Management)
4.정보 유지(Information maintenance)
5.통신(Communication)
출처 : http://ko.wikipedia.org/wiki/%EC%8B%9C%EC%8A%A4%ED%85%9C_%ED%98%B8%EC%B6%9C
----
시스템 콜과 C 라이브러리는 간단한 방법으로 구별할 수 있다. 바로, man 으로 비교하는 것이다.
man 의 2 번 섹션이 시스템 콜, 3 번 섹션이 C 라이브러리 이다.
아래는 man 섹션 번호 와 분류 쌍이다.
| 1 | Executable programs or shell commands |
| 2 | System calls (functions provided by the kernel) |
| 3 | Library calls (functions within program libraries) |
| 4 | Special files (usually found in /dev) |
| 5 | File formats and conventions eg /etc/passwd |
| 6 | Games |
| 7 | Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7) |
| 8 | System administration commands (usually only for root) |
| 9 | Kernel routines [Non standard] |
출처 : http://azdream.egloos.com/1408040
'Dev.Programming > Other.Computer.Science' 카테고리의 다른 글
| Race Condition 이란? (0) | 2010/04/20 |
|---|---|
| Spin Lock 이란? (0) | 2010/04/20 |
| Live Lock 이란? (0) | 2010/04/20 |
| 시스템 콜(System Call) 의 정의 및 STD C Lib. 와 구분하는 방법 (0) | 2010/04/20 |
| AI - Production System (0) | 2009/10/28 |
| Compiler - Context-Free-Grammar sentence generator (2) | 2009/09/11 |


